Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Question]CountDown
#1
Ok, here is my countdown codes and pictures.

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

[Image: 10qzy8o.jpg]

[Image: 2ldau5h.jpg]


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 ;).
Reply


Messages In This Thread
[Question]CountDown - by p1g 0wnz - 12-28-2009, 06:37 PM
RE: [Question]CountDown - by Digital-Punk - 12-28-2009, 11:23 PM
RE: [Question]CountDown - by p1g 0wnz - 12-29-2009, 06:53 AM
RE: [Question]CountDown - by HatredTrinity - 12-29-2009, 07:46 AM
RE: [Question]CountDown - by p1g 0wnz - 12-29-2009, 07:52 AM
RE: [Question]CountDown - by thanasis2028 - 12-29-2009, 08:25 AM
RE: [Question]CountDown - by p1g 0wnz - 12-29-2009, 08:57 AM
RE: [Question]CountDown - by Digital-Punk - 12-29-2009, 09:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Question] Countdown 2 p1g 0wnz 6 1,290 12-29-2009, 06:20 PM
Last Post: dunlop03

Forum Jump:


Users browsing this thread: 4 Guest(s)