Hi, Yoshitha!
Have a look at the System.TimeSpan struct.
It's returned by the mathematical operators for DateTime types.
Example:
// This might be a static member in your application class, or a member of
the "Test" class if you have one..
DateTime testStart = DateTime.Now;
// Do your stuff
// Check if 75 min has passed:
TimeSpan timeUsed = DateTime.Now - testStart;
if (timeUsed.TotalMinutes > 75)
{
// Stop test
}
HTH,
Lars-Erik
"yoshitha" <jy********@nannacomputers.com> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
hi ,
am developing quiz application.
the questions will be displayed one at a time after clicking next button
only the next question will be displayed.
for evry test the time to finish this test will be maintained in back end.
so i set 75 minutes for a particulat test. after 75 minutes whether the
candidates completed all the question or not but the test must be closed.
can anybody tell me how to do this one.
thanx in advance
yoshitha