Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design/Run mode
Message
 
À
07/05/2001 13:21:51
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
Divers
Thread ID:
00504291
Message ID:
00504629
Vues:
20
>I have written an activex control in VB6. Is there a way to tell if the control is in the design mode or the run mode. It seems that when a form is in design mode the controls events that fire are initailize, initproperties(only fires when the control is dropped on the form), readproerties. When you hit f5 to run the program the writeproperties, and terminate events fire then the initialize, readproperties.... fire. How can i distinguish between the vb's design mode, and when the application that is using my control is running?

Use the Ambient.UserMode property.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform