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 ShaikhPosted Oct 5, 2011, 12:38 PM
Please do not forget to mark "Accepted Answer"
Suthish NairPosted Oct 5, 2011, 12:39 PM
Jean PaulPosted Oct 5, 2011, 12:32 PM
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