>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