Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer control... How to use it?
Message
 
 
To
18/08/2001 14:33:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00545885
Message ID:
00545886
Views:
18
>Hi. How do you set up the timer control? Sorry to ask but help is not very helpful. I need a label to flash like every second. I know I have to set the Visible property to .f. and .t., but how do you program this in the timer?
>TIA
>Ulises.

Drop a timer control on the form with the label and set Enabled property to .F. Put the code you want to run in the timer's Timer Event
This.Enabled = .F.
Thisform.Label1.Visible = Not Thisform.Label1.Visible
This.Enabled = .T.
To start timer at appropriate place
Thisform.Timer1.Interval = 1000 && 1 second or whatever
Thisform.Timer1.Enabled
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform