Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MDI Child
Message
 
To
24/11/1998 22:05:19
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00160071
Message ID:
00161283
Views:
17
>Let me explain to you with the simple example :
>
>I have 1 MDI form (MDIFORM) with 1 MDI child ( Form1) , after Form1 loaded, I want to load it again .. it does not work ..
>
>at MDIFORM :
>
>Dim x as New Form1
>
>Private Sub MnuForm1_Click()
>x.Show
>End Sub
>
>please help ..

Now I see (at least, I think!!!).

The line in trouble here is your declaration (Dim X as New Form1). It seems to be in the General Declarations section. The result of this is that one new instance of Form1 (named x) is created. Your event calls the same instance each time. If you look at the example that I gave you (and Jody give you this morning), the new instance is created in the event.

Try this, it will now work.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform