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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDIChild opens with error

Status
Not open for further replies.

MartinDurant

Programmer
Jan 25, 2002
41
GB
I have a basic MDI app. When I try to open an MDIchild form using this code:

Code:
Dim frmOrders As New Form2
frmOrders.Show , MDIForm1

two copies of my MDIChild form are opened and I get the following error “Invalid procedure call or argument”.

Any help gratefully received.

Thanks.
 
If form2 is already set as a mdichild change this line frmOrders.Show , MDIForm1
to just
frmOrders.Show
 
This is just a curiosty question. I have several MDIChild forms and when I start the app, they all appear without me instructing them to. So what I have to do is hide all of the child forms on startup.

Is there a reason they are starting up on there own.


Thanks

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top