I want to add a timer rather than a countdown
which automatically starts when the form loads.
Starting time should be like 20 minutes and once it ends, i.e. on reaching 0 minutes, the form should terminate with a message displayed. And how do I display the countdown on the form? Please help me because i am working on electronic examination using window application in C#
Loading
VulpesPosted Oct 4, 2014, 9:50 AM
Note that I've created the timer programatically rather than via the VS designer.
However, you'll need to add a label to the form to show the remaining time:
// add this manually
VulpesPosted Oct 7, 2014, 10:18 AM
When the time elapses, you'll therefore need to call this method and show the result in the MessageBox rather than what you're showing at present.
louis TundePosted Oct 7, 2014, 3:29 AM
VulpesPosted Oct 6, 2014, 6:23 AM
louis TundePosted Oct 5, 2014, 1:44 PM