Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI Multiple Child Forms 1

Status
Not open for further replies.

GROKING

Programmer
Mar 8, 2005
26
US
I have a two child forms loaded on a MDI form. I click the first to start running the code and it works fine. But when I try to click on the second to run the sub main nothing happens.
Can I have two child forms loaded and running at the same time.

I also am using database connections on each and am not setting them to nothing after the recordset is pulled back. I will make this change first and see if it helps.

Also, what is modal and should the child forms be running in vbmodal?

Thanks for all the help,
Happy Programming
 
1. If you want code to run when a form gets focus from within your app you can use the Form_Activate event.
2. You can have lots of Child forms loaded at the same time
3. Modal (within your app) means that the form so loaded will retain focus until you close it. Since the main benefit of Child forms is that you can switch between them, it doesn't make sense to load them modally. Obviously only one form can be loaded modally within one app!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
I don't believe that child form can be opened modally. You can however add a normal form (non-child) to the app and open it modally if necessay. But be aware that this form will not act like a child form.

zemp
 
But when I try to click on the second to run the sub main nothing happens.

Are you in fact running a sub main procedure in the middle of your program?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top