Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Forms
Message
De
23/09/2003 08:46:39
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Divers
Thread ID:
00831081
Message ID:
00831420
Vues:
18
Well that helped - kinda...

I'm wasn't sure exactly what you meant, but I moved the declaration out of the event handler. I wasn't sure where to put it, so I changed it to a private member of the main form:

private Form frmQuestionaires = new Questionaires();

My event handler now just has:

frmQuestionaires.Show();

Now the problem is that I get an error on subsequent clicks of the menu item. The first time is fine, it only brings up one instance of the form.


Thanks,

Steve


>Hi!
>
>You should move the declaration of the form outside the event handler, and add the activate method after the show method of the form.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform