|
-
Dec 19th, 2011, 11:10 AM
#19
Thread Starter
Junior Member
Re: Creating Patient Event Logger for a Hospital NICU
 Originally Posted by wild_bill
Code:
'This
Dim elapsed As TimeSpan = Me.StopWatch.Elapsed
Label1.Text = String.Format("{0}", Math.Floor((elapsed.Minutes * 60) + elapsed.Seconds))
'Can be shortend to this
Label1.Text = Me.StopWatch.Elapsed.TotalSeconds.ToString
Thank you, Wild Bill. However, using that causes seconds to be displayed to 7 decimal places. Is there any way to prevent that? I just want seconds displayed as whole numbers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|