D dave Oct 17, 2003 #1 The execution control does not jump here if I have button, textbox, etc in the window form. Works OK with an empty form. Thanks
The execution control does not jump here if I have button, textbox, etc in the window form. Works OK with an empty form. Thanks
N Nicholas Paldino [.NET/C# MVP] Oct 17, 2003 #2 Dave, It doesn't work because the focus is then on that control, and not on the form itself. What you want to do is set the KeyPreview property on the form to true, and then it should fire. Hope this helps.
Dave, It doesn't work because the focus is then on that control, and not on the form itself. What you want to do is set the KeyPreview property on the form to true, and then it should fire. Hope this helps.