0

Hello,
I have created a form that needs to work like a stop watch. The user enters the time (hrs, min, sec) then clicks the start time. I have a label that should display the time remaining. This works great when I am displaying everything as seconds. When I try converting this to HH:MM:SS the time does not change. Any suggestions? the code is very basic I am using this in the timer event:

lbltimeremaining.text = mytime - 1
mytime = lbltimeremaining.text

Any help will be greatly appreciated.

Thank You

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by ProfessorPC
0

I have found a solution. I added this to my timer_tick event

Dim countdown As Integer
        countdown = mytime - 1
        mytime = countdown

        Me.lblTimeRemaining.Text = (TimeSpan.FromSeconds(mytime)).ToString
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.