AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile
How can you tell if an ActiveX control is a Design time or a Run Time instance. I want to show an image during Design Time, and hide it during Run Time.
Use this code inside your control
Thank You UserMode is a member of the ambient properties.
BTW, if you want to make all of the control hidden at runtime but showing at designtime you might be better using the InvisibleAtRuntime property. ____________________________ We have a Mustek 5 M/Pix GSm@rt USB Digital Camera for just £74.03 , offer only on until 30th February! <AllDuck.com> Enquiries/Sales: 0845 430 9862 Fax: 0870 950 4532