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

Form Not Loading-MDIChild problem

Status
Not open for further replies.

kurie

Programmer
Jun 4, 2008
170
ZA
Good day
I have two forms, frmmain and frmchild
and the property MDIChild is set to true on frmchild, when i try to load it using frmchild.show, its not loading and no error message is given, But when MDIChild is false its loading.
does anyone know why this is happening.
 
Did you add frmmain as a MDI form?

[gray]Experience is something you don't get until just after you need it.[/gray]
 
Yes frmmain is MDI form. I just dont know why its working
Thank you.


hate Computers
 
Child forms are created using the New keyword because you can create multiple instances of the child form ( that's the whole idea of MDI ). Since you don't show your code here, I don't know if you are doing it like this or not. Here's an example of clicking a button to create the child form.

Code:
Private Sub NewChild_Click()
     Dim MyChild As New frmchild
     MyChild.Show
End Sub

Does this help?
 
Hie Guys
My code looks likes this.
Dim frm As New frmLicence
frm.Show
but it doesnt work, and no error messesage is displayed
 
When/where (menu, form_load, button)are you loading it using the code??
 
And is there any code in the child form's Intitialise or Load events?
 
Thank you guys for your help, i have created a new child form and did exactlty what i did with the first child form and its now working.
Thank you guys for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top