Possible MDI bug in .net 1.1

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a MDI application with 2 childforms using VB.Net and VS 2003.
Each childform has some textboxes and a few buttons. The textboxes have a
keypress handler that checks for the Enter key being pressed and then
converts it to a tab key so that the next control gets the focus.

The event handler works fine when you first open a childform. However, when
you click on any of the buttons and then open the other childform and then
switch back to the first childform, then put the cursor back into the text
box and hit enter, the form will invoke the event handler for the button you
clicked before you switched between child windows. It will no longer invoke
the KeyPress handler that's hooked up to the textbox.

However when I recreate the mdi app using VS 2002 the app works as expected
without any of the above problems.
 
Hi,

I'm having the same problem - has anyone figured out how to get around this?
I click a button on my child form, click in my textbox on the child form,
hit the enter key, and the click event of the button is raised again instead
of CRLF being sent to my textbox.

Does anyone have any idea how to work around this?

Thanks
David
 
Back
Top