Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MDI Child
Message
De
25/11/1998 06:43:05
Jody Cairns
OAO Technology Solutions
Moncton, Nouveau-Brunswick, Canada
 
 
À
24/11/1998 22:05:19
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00160071
Message ID:
00161272
Vues:
26
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform