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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Timer Object

Status
Not open for further replies.

ClivePerkins

Programmer
May 19, 2000
3
GB
I have an Object Model that requires a timer control.
However I want to use the VB Timer as an object as oposed to creating a control on a form.

I am allowed to use the following code to dim an object:
Dim WithEvents obj_Timer As VB.Timer

however when I attempt to create an instance of the Timer using

Set obj_Timer = New VB.Timer

I get the following compile error message:
"Invalid use of new keyword"




 
It seems to not work if u create an timer as an object...
Try to use in a form... or try to use api calls to SetTimer.... ________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top