Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about Timer in Custom control

Status
Not open for further replies.

DarkMercenary44

Technical User
May 19, 2000
55
US
How do I make the timer not run while in design mode. I set enabled to false but when I add my custom button to a form it enables itself via the UserControl_initialize method. So how do I make it not run in design , but when you actually run the app I want it on right away. DarkMercenary
darkmercenary44@earthlink.net

In the real world
As in dreams
Nothing is quite
What it seems
:Book of Counted Sorrows
 
You could check to see if the app is running in the VB IDE and then enable or disable the timer accordingly. See thread711-42502 for an example of detecting the VB environment.
VCA.gif

Alt255@Vorpalcom.Intranets.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top