Results 1 to 2 of 2

Thread: Late Bind Timer

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262

    Late Bind Timer

    Does anyone know how to late bind a Timer in a Class?

    I need to use a timer in an object and the timer is located on a form. I have dont the same thing with the MSComm Control but I can figure out how to bind a timer.

    To do the comm control I did this
    VB Code:
    1. Set mvarComm = CreateObject("MSCommLib.MSComm")

    Then once its declared in the object, bind it to the form
    VB Code:
    1. Public Property Let SetCommPort(Comm As Object)
    2.  
    3.   Set mvarComm = Comm
    4.  
    5. End Property

    VB Code:
    1. gSysControl.SetCommPort = frmTowercam.comControl

    Does anyone know the library for the timer?

    If not, any other way to do this?

    Jerel

  2. #2
    Addicted Member
    Join Date
    Feb 2003
    Posts
    237
    can you include the timer on the form and then just pass in
    the ref to teh class ?

    The timer object is built into the vb runtimes i believe so I dont
    think you can createobject it

    a work around would be to use an api timer that you could
    create dynamically..pscode.com is sure to have a couple api
    timer class examples....or mckinneys hardcorevb has one
    Free Code, papers, tools, and more

    http://sandsprite.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width