I want to add functionality to my WinForms so that when it starts a counter starts which will be in hh:mm. I know this can be done using a timer. I have made a time label which displays the current time, but I don’t know how to start the timer when the form is loaded. Is there any method or class for that?
Share
Place
Timercomponent to your form (drag it from ToolBox – it’s imporant, because timer should be registered as form’s component to be disposed correctly when form closes). Set timer’sIntervalproperty to60000(that’s equal to one minute). And subscribe toTickevent:On Form_Load event handler start timer and save countdown end time: