I am very new to c# and i want to learn it......is there is a good tutorial to learn visual c# 2010 express for desktop apllication.
And I wanted to to create a code(c#)to display total elasped time as a label when the user clicks an evaluate button (add or subtact from the current elasped time to evaluate elasped time)....please somebody help me
micahgeorge 0 Newbie Poster
Recommended Answers
Jump to PostThere are lots of good tutorials out there, google will provide many.
As for your elapsed time question, there are a number of ways to do this but here is the way I like to handle it:
// remember the time at the start DateTime start …
Jump to PostUse TotalHours, TotalMinutes, and TotalSeconds properties.
... string timeElapsed = String.Format("{0} Hours, {1} Minutes, {2} Seconds", Math.Floor(duration.TotalHours), Math.Floor(duration.TotalMinutes), Math.Floor(duration.TotalSeconds); ....
All 5 Replies
darkagn 315 Veteran Poster Featured Poster
Momerath 1,327 Nearly a Senior Poster Featured Poster
kvprajapati commented: Excellent :) +11
micahgeorge 0 Newbie Poster
kvprajapati 1,826 Posting Genius Team Colleague
micahgeorge 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.