954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Creating an Auction Countdown timer in VB 2010

I'm a beginner student learning Visual Basic 2010, and im trying to create an auction countdown timer in my form but I'm not sure how to do it. The countdown timer Im interested in would be similar to the ones found in BeezID or Swoopco, where the timer continuously counts down, then when a person makes a bid, the timer goes up by 5-10 seconds and continues the countdown. Can someone help me with the code? I searched google and found posts on similar topics, but nothing seemed to match what I'm looking for.
Thank you,

LV

e_ayt
Newbie Poster
8 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 
Dim i As Integer = 10

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If i > 0 Then
            i = 10
            Timer1.Enabled = True

        Else
            MessageBox.Show("Time Up")
        End If
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        If i > 0 Then
            i = i - 1
            Label1.Text = i.ToString()
        Else
            Timer1.Enabled = False
        End If
    End Sub


You mean some thing like this
I hope if i understand your problem it help you, if you get any other feel free to ask

prvnkmr194
Posting Whiz in Training
222 posts since Oct 2010
Reputation Points: 11
Solved Threads: 44
 

Check out this thread for info about a countdown timer.

codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
 

Thank you so much Prvnkmr194 and codeorder. Your posts have helped me tremendously!
I will try it now and see if I run into anymore issues.
Thanks again!

e_ayt
Newbie Poster
8 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 

Mark it as solved

prvnkmr194
Posting Whiz in Training
222 posts since Oct 2010
Reputation Points: 11
Solved Threads: 44
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: