Hi Programmers,
I am intermediate level programmer in c#.
I am making an application in using visual studio 2008 and c# as language to conduct standalone objective type exam. My requirement is as follow:
I want to use the Progress Bar control to display the time limit of the exam.
The time must be displayed in minutes and secs.
Initially i want that the Progress Bar must be completely filled and time remaining must be displayed. As the Progress Bar control decreases the time should also be displayed decreasing.
How this can be achieved? Please help me.
If you have some code that would help me achieve this task then please forward me.
Thank you.
Loading

Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 5, 2011, 8:38 AM EDT
Please do not forget to mark "Accepted Answer"
Jean PaulRank #32 · 38.5K reputationPosted Oct 5, 2011, 8:32 AM EDT
Lot of fun in the world of c#.net.
For your problem, we have created a small implementation.
For running this, create a new windows application, add a label and progress bar on the form and use the following code:
For datetime difference calculations, you need to get familiar with the TimeSpan inbuilt class.
Let me know if any help needed further.
Regards,
Jean Paul
Suthish NairRank #92 · 22.8K reputationPosted Oct 5, 2011, 8:39 AM EDT