MDIChild problem

Perhaps you've figured this out?
I believe the problem is somewhere between your keyboard and chair :).
If you do exactly what the instructions in form2 say and actually place the cursor in the textbox (step 4) you will get the MsgBox. If however you forget to place the cursor in the textbox and press Enter, the button will have the focus (since you clicked it in step 2) and therefore when you press enter the button will be "clicked" and open form3.
As an aside, you should get away from using MsgBox function and instead use the MessageBox class.
 
The problem is that VS2003 has a problem with the keydown and keypress event after a mdichild opens another mdichild and it is closed. Do you think this is an application or a demonstration of a specific problem?
 
Last edited by a moderator:
It appears that you are quite correct, although it has nothing to do with closing the third form, as merely activating the second form again by clicking on the TextBox produces the same phenomenon. I will investigate further, firstly by checking the Microsoft Knowledge Base, where all known bug information is posted. We were a little flippant in this thread but please do not ever post direct insults on the forum again.
 
Back
Top