Hi
How I call a FORM with MDICHILD = true (1), from other FORM with MDICHILD = true (2) , without that the (1)
When I call the form 1 , It return to the form 2 and unload the 1
ps
(1) and (2) There are forms names examples
Printable View
Hi
How I call a FORM with MDICHILD = true (1), from other FORM with MDICHILD = true (2) , without that the (1)
When I call the form 1 , It return to the form 2 and unload the 1
ps
(1) and (2) There are forms names examples
mutley,
Are you asking:
"How can I open a mdiChild form from another mdiChild form so that the first form is unloaded after the second form is loaded?"
If this is your question then in Form1, you probably have:
and in Form2 you will need to add in the Form_Load event:Code:Form2.Show
It is OK to do this if you only expect one Form1 and Form2 to exist in your application, but there are better ways to handle forms in an MDI application if you want to learn them.Code:Unload Form1
Just reply back and someone can teach you.
Regards
Paul Lewis
Hi
I am using an MDI application, and FORM1 and FORM2 are with property MDIChild = true, I want open the FORM2 from FORM1, but I want let it the FORM1 opened, but when I call the FORM2 It open e close and return to FORM1 , I want that the user click in button when He wanted close the FORM2
thank you in advance
Not meaning to state the obvious, but if you are saying that the form2 opens, then closes immediately, it is clear to me that you have one of the following in your Form2 or Form1 code:
Unload Form2
Form2.Hide
or one of the following in your Form2 code:
Unload Me
Me.Hide
Look in the Form2_Load event and also in the code for the button on Form1 that the user clicks. If it's small enough, post the code or email me with it.
As VB programmers, we talk a common language of VB so if you post code, we can understand you better. Your English is 1,000,000 times better than my Portuguese!
Cheers
Paul Lewis