Ok, here is my countdown codes and pictures.
My point is. When i click Start, it FAST, very fast, what is the correct code to make it go slower? I did make some of that code up.
Another question.
When i press Stop, the time ends. Is there Anyway i could make it so it could start where i stoped it at?
Oh yeah btw this took me about 10 minutes to do. I'm new to Visual Basic, so please don't make fun of this ;).
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = Val(TextBox1.Text)
Timer1.Start()
Label4.Text = ""
Label5.Text = ""
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = Label1.Text - 1
If Label1.Text = "0" Then
Timer1.Stop()
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
Label1.Text = ""
Label4.Text = "You have stoped the countdown"
Label5.Text = "Please make a new timer"
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
My point is. When i click Start, it FAST, very fast, what is the correct code to make it go slower? I did make some of that code up.
Another question.
When i press Stop, the time ends. Is there Anyway i could make it so it could start where i stoped it at?
Oh yeah btw this took me about 10 minutes to do. I'm new to Visual Basic, so please don't make fun of this ;).