Results 1 to 6 of 6

Thread: Timer Control - Need a bit of help

  1. #1

    Thread Starter
    Hyperactive Member Sal's Avatar
    Join Date
    Mar 2000
    Posts
    262
    The following code is on a form, and isn't doing what I want it to do.

    Private Sub Timer1_Timer()
    If Timer1.Enabled = True Then
    cmdStart.Visible = False
    Else
    cmdStart.Visible = True
    End If
    End Sub

    The command button is visible when the form loads, contrary to my desire. I want the form, which is a splash screen to load, then after about 12 seconds, the cmdStart command button appears. Allowing the user to start the actual program. By the way, the timer interval is set to 12,000. I think that is equal to 12 seconds

    Thanks,
    Sal

  2. #2
    Addicted Member
    Join Date
    Mar 2000
    Posts
    168

    well..

    set the VISIBLE property of the command button to false in the IDE.. or.. in the form_load sub set cmd.visible = false, then all you gott do is set it back to true in your timer.

    hope that helps,
    Thai

  3. #3

    Thread Starter
    Hyperactive Member Sal's Avatar
    Join Date
    Mar 2000
    Posts
    262
    Figured that out, probably just as you were typing the solution. :-O

    Thanks

  4. #4
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Replace all of this:

    Code:
    Private Sub Timer1_Timer() 
     If Timer1.Enabled = True Then 
       cmdStart.Visible = False 
     Else 
       cmdStart.Visible = True 
     End If 
    End Sub


    With:

    cmdStart.visible = not cmdStart.visible
    Chemically Formulated As:
    Dr. Nitro

  5. #5

    Thread Starter
    Hyperactive Member Sal's Avatar
    Join Date
    Mar 2000
    Posts
    262

    Icons for Developers - Where are they? (Free)

    Where can you get a good source of icons, preferably free? I need a door and some other stuff.

    Sal

  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Therer's loads of Icon's come with windows, Just look around your Hard drive.

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