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.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"dave" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
The execution control does not jump here if I have
button, textbox, etc in the window form. Works OK with an
empty form.
Thanks