Weird problem here.... I have a Windows form
None of the components in the form have their own keyboard event handlers.
Before I go and isolate the problem I just wanted to to see if anybody here has an idea or has perhaps experienced something similar ?
Main
with two keyboard event handlers, Main_KeyPress()
and Main_KeyUp()
. They used to work fine but now for some reason they are not being fired anymore (as I have verified by setting breakpoints in them). Lots has changed in the form since I last tested them, but I can't think of anything that would now prevent these event handlers from being fired. They are duly added in Main.Designer.cs:
Handlers in Main.Designer.cs:
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Main_KeyPress);
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Main_KeyUp);
None of the components in the form have their own keyboard event handlers.
Before I go and isolate the problem I just wanted to to see if anybody here has an idea or has perhaps experienced something similar ?