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

VulpesRank #55 · 29.2K reputationPosted Oct 4, 2014, 5:50 AM EDT
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
louis TundeRank #6,843 · 255 reputationPosted Oct 5, 2014, 9:44 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 6, 2014, 2:23 AM EDT
louis TundeRank #6,843 · 255 reputationPosted Oct 6, 2014, 11:29 PM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 7, 2014, 6:18 AM EDT
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.