hi,
how to calculate a elapsed time,
when i load the form and i do some stuffs and then when i press on one button then it should show the amount of time in one textbox ( from form loading to clicking of button).
please help me...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Nov 3, 2014, 7:10 AM
If that's the case, then replace this line:
textBox1.Text = (DateTime.Now - startTime).ToString(@"hh\:mm\:ss");
with these two:
Peter AbbasiPosted Mar 1, 2024, 1:11 AM
Sorry for necro posting, but I've been searching for weeks now but there is not much documentation on using C# in PowerPoint _during_ a Presentation in Slideshow View. How would I implement the timer that appears in the comments here such that it would display continuously across all slides. Let's say I have a textbox named "timer" that I have ensured appears on ever slide. Is there a way to display the slideshow's running time, such that changing slides has no effect on the value inside that textbox named "timer"? Ideally it would start when the show starts, and continue running for the duration of the show.
Wim SturkenboomPosted Nov 3, 2014, 2:00 AM
ERROR:No overload for method 'ToString' takes 1 arguments
[/quote]
I've copied the code and it compiles (and runs) fine. Check the line where the error occurs to make sure it matches what Vulpes posted.
raju patilPosted Nov 2, 2014, 11:50 PM
VulpesPosted Nov 2, 2014, 9:08 AM
raju patilPosted Nov 2, 2014, 6:31 AM
raju patilPosted Oct 31, 2014, 9:08 AM
raju patilPosted Oct 31, 2014, 9:06 AM
Guest UserPosted Oct 31, 2014, 8:58 AM
raju patilPosted Oct 31, 2014, 8:50 AM
how to get it in hh:mm:ss
VulpesPosted Oct 31, 2014, 7:33 AM
raju patilPosted Oct 31, 2014, 7:13 AM
Guest UserPosted Oct 31, 2014, 6:10 AM