Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MDI Child
Message
From
25/11/1998 06:43:05
Jody Cairns
OAO Technology Solutions
Moncton, New Brunswick, Canada
 
 
To
24/11/1998 22:05:19
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00160071
Message ID:
00161272
Views:
16
>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

Make sure your Form1 is a MDI child form, and make sure you Show it using your assigned variable name, NOT the name of the form itself.

I did this from scratch and got it working:

- Created a new project with one form (Form1).
- Added a MDIform (MDIForm1) and made that the Startup Object (under Project Properties)
- Set Form1's MDIChild property child to true
- Added a File menu to my MDIForm1 form with a New menu item
- Added the following code to the New menu's click event:
dim f as new form1
f.show
I then ran the Project and it worked fine.

If that doesn't work, then you're not telling us something we should know.

Best,

jody
Previous
Reply
Map
View

Click here to load this message in the networking platform