Jump to content
Fórum Script Brasil
  • 0

Como Criar Um Cronometro No Visual Basic 2008.


cybers

Question

Primeiro você vai add um timer

depois.. add 4 labels ordem....label1=0, label2=00, label3=00, label4=00...

button1--Timer1.Start()

Button2--Timer1.Stop()

Button3--Label1.Text = "0"

Label2.Text = "00"

Label3.Text = "00"

Label4.Text = "00"

Timer1:

Timer1.Interval = 10

Label4.Text += 1

If label4.text = "60" Then

Label3.Text += 1

label4.text = 0

End IF

If label3.text = 60 then

label2.text += 1

label3.text = 0

End if

label2.text = 60 then

label1.text += 1

label4.text = 0

Edited by cybers
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      651.9k
×
×
  • Create New...