Hi,
this is my (simplified) situation:
I have got 3 forms and one usercontrol:
their names are:
container (startup object),myform,another, mycontrol
contair has got IsMdiContainer set to true, a mainmenu with a menuitem,
which if you click it opens myform with the following piece of code:
Dim objMy As New myform
objMy.MdiParent = Me
objMy.WindowState = FormWindowState.Maximized
objMy.Show()
on myform there's a tabcontrol with to tabpages, on the first tabpage
there's a button and if you click it the form called "another" opens with
this piece of code:
Dim objAnother As New another
objAnother.MdiParent = MdiParent
objAnother.WindowState = FormWindowState.Maximized
objAnother.Show()
on the second tabpage is myusercontrol which contains 2 textboxes if you
press the enter key in the first textbox the focus is set to the second
textbox and that's it.
Now what's the problem I've got:
If I run the project then click on the menuitem, and go to the second
tabpage and press enter in the first textbox the keydown event fires ok.
But if I first press on the button on the first tabpage which opens
"another" form and close that form and then go to the second tabpage and
press enter in the textbox the keydown doesn't fire.
Attached is the testproject.
Any help would be appreciated.
Thanks in advance,
Greetz Peter