On Mar 27, 2006, at 3:53 AM, Christian Leicht wrote:

Hans-Georg schrieb:
Am 27.03.2006 um 13:24 schrieb Christian Leicht:
So i can start a new one. But i didnt know how cab i use it to trigger a command after the 5 sec.

You have to create a subclass of Timer, .e.g. myTimer. Put your code in the action event of your subclass.
  t  As New myTimer(some inits, if necessary)
  t.Mode = 5000
  t.Enabled = true
Hans-Georg

Do i need to make a Class in the Project Window ?

t  As New myTimer
t.Mode = 5000
t.Enabled = true

so i get an error

No such class (myTimer)

Try Creating a Timer subclass. (myTimer)

Add a property " t As myTimer " to the window or a module.// Must be a property and cannot be local.

t = New myTimer
t.Mode = 1 (Single) // There are three modes: Off (0), Single (1) and Multiple (2)
t.Period = 5000

Put your Action code in the subclass's Action event.

It's usually easier just to drag a timer control. ;)

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to