>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