ClivePerkins
Programmer
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"
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"