I'm using the KeyUp event for something trivial (if the Control key is down, clear a Boolean). In one situation, the Boolean wasn't being cleared, but that was understandable, since the KeyUp event never happened.
As a general rule, this is relatively insignificant. The KeyUp event never fires if pressing a key launches some sufficiently long-running process in the KeyDown event, or something like that. I can get around this pretty easily, in this case. What I am wondering is whether or not there is a more universal alternative? Since the KeyUp event is not guaranteed to necessarily ever follow the KeyDown, is there any event that will ALWAYS follow a KeyDown?
As a general rule, this is relatively insignificant. The KeyUp event never fires if pressing a key launches some sufficiently long-running process in the KeyDown event, or something like that. I can get around this pretty easily, in this case. What I am wondering is whether or not there is a more universal alternative? Since the KeyUp event is not guaranteed to necessarily ever follow the KeyDown, is there any event that will ALWAYS follow a KeyDown?