VB.NET Focus Bug

  • Thread starter Thread starter Dan Fischer
  • Start date Start date
D

Dan Fischer

I have an MDI form with 2 child forms. I open the first
child window which contains a textbox and a button. The
button opens the second child form. If you click the
button, open the 2nd child form, close the second child
form, click in the textbox and change some text, then hit
enter, the program acts as if the button was hit (it
doesn't have focus nor is it the "Accept Button" of the
form). I have a small sample app that demonstrates this
behavior (it is hard to visualize without a sample). If
anyone feels like they can help and wants to look at the
sample, I would greatly appreciate it. :)
 
Dan:

I just tried it and it's not happening...

Here's what I did, is this correct:

Form1 is MainMDI. I have a button (Button1) and a textbox (TextBox1).
Clicking Button1 Instaniates and calls the Show Method of Form2 (f2). I
close f2. At this point, I'm back in the MainMDI. Enter Textbox1 and change
the text, then hit Enter. I hear a ding and nothing happens.

Post the code, I'd be glad to check it out.

Bill
 
Close. I have an MDIForm that has a button that opens
Form1. From there you are correct.

How can I post the zip of my project? I'm not getting
an "Attachment" box when posting?
 
If you are using Outlook Express, just maximize the window. If you can't
get it to work, just send it to wryan(LeaveThisOut)@infoprogroup.com
 
Sent...
-----Original Message-----
If you are using Outlook Express, just maximize the window. If you can't
get it to work, just send it to wryan(LeaveThisOut) @infoprogroup.com



.
 
Back
Top