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

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.