Results 1 to 4 of 4

Thread: Option button and Command button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    77

    Angry

    Hay, guys i am back with new problem. On my form i am having two Option buttons, 2 Command buttons, 1 Label. Option1 says '2 Minutes' and Option2 says '5 Minutes' and Command1 says 'Start' when user choose option1 and click on Command1 after 2 minutes has done it will show Label1. I don't know how to do this because i am begainer, if any one help me, it'll be help full. Thank you.

  2. #2
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    You need to add a timer to your control then set the label's visible property to true.

  3. #3
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    There's a lot of way , but here's one with an api.

    Code:
    Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    
    Private Sub Command1_Click()
    Sleep 120 000
    End Sub
    For one second it's 1000, so times 120 = 120 000

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    77
    i don't know How would i use with Timer control.if any one will help me that'll be great.

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