A
Arashk Mahjoubi Amine
Hi
I have question about Click event handler in forms, which the forms are
in the mdi container.
Let say from1 is a mdi container (IsMDIContainer = True) and include
form2 and form3.
In form3 we have a Textbox and Button and both of them have Click event
handler and also AcceptButton in from3 is false.
Now after you ran this project, if you go on textbox and hit the "enter"
key, you will see that the button click event will get fire!!!???
Please let me know, if you have any suggestion. ([email protected])
Thanks
-Ash
Note:
You find an example about this issue in this address:
http://www.caip.rutgers.edu/~arashk/VB.net/example/ButtonClickOnTextBoxE
nterKeyPress.zip
Run the project.
1-Go to form2 and click, then press the enter key.
2- Go to Textbox in form3 and click (so the focus is on text box). Now
press the Enter key on text box.
As you can see instead of Textbox1 key press event, the Button1 key
press event will get fire!!!!!!
I have question about Click event handler in forms, which the forms are
in the mdi container.
Let say from1 is a mdi container (IsMDIContainer = True) and include
form2 and form3.
In form3 we have a Textbox and Button and both of them have Click event
handler and also AcceptButton in from3 is false.
Now after you ran this project, if you go on textbox and hit the "enter"
key, you will see that the button click event will get fire!!!???
Please let me know, if you have any suggestion. ([email protected])
Thanks
-Ash
Note:
You find an example about this issue in this address:
http://www.caip.rutgers.edu/~arashk/VB.net/example/ButtonClickOnTextBoxE
nterKeyPress.zip
Run the project.
1-Go to form2 and click, then press the enter key.
2- Go to Textbox in form3 and click (so the focus is on text box). Now
press the Enter key on text box.
As you can see instead of Textbox1 key press event, the Button1 key
press event will get fire!!!!!!