Results 1 to 4 of 4

Thread: Enabling / Disabling a timer via another form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160

    Enabling / Disabling a timer via another form

    Sorry im in a bit of a hurry so i don't have time to find this out myself, but if i have a timer on a form (lets say form1) then how can i make a radio button on another form turn it on or off? (form2)

    is there a way i can modify
    timer1.enabled

    or a property that allows it to be changed from any form?
    Jack Daniels
    ICQ: 72074030
    VB 6.0

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. Private Sub Option1_Click()
    2. Form1.Timer1.Enabled = False
    3. End Sub

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Enabling / Disabling a timer via another form

    Originally posted by Jack Daniels
    Sorry im in a bit of a hurry so i don't have time to find this out myself, but if i have a timer on a form (lets say form1) then how can i make a radio button on another form turn it on or off? (form2)

    is there a way i can modify
    timer1.enabled

    or a property that allows it to be changed from any form?
    form1.timer1.enabled

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160
    opps, thanks.
    Jack Daniels
    ICQ: 72074030
    VB 6.0

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