| | |
Displaying fixed digits = 7 -> 007
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2005
Posts: 69
Reputation:
Solved Threads: 0
I want to format the number to display fixed digits, but the format code that I have seen doesn't have that option. I want to display the longitude of the cursor in DDD::MM:
S form. I want to see 7 degrees as 007::00::00.
My code in VC++.NET (formatting is not included):
statusBarPanelLon->Text = String::Concat (degrees.ToString(), S"::" , minutes.ToString(), S"::", rndSecs.ToString());
My code will display 7 degrees as 7::0::0. I was hoping there is something available in .net to use so I won't have to manually concat zeros.
Thanks.
S form. I want to see 7 degrees as 007::00::00. My code in VC++.NET (formatting is not included):
statusBarPanelLon->Text = String::Concat (degrees.ToString(), S"::" , minutes.ToString(), S"::", rndSecs.ToString());
My code will display 7 degrees as 7::0::0. I was hoping there is something available in .net to use so I won't have to manually concat zeros.
Thanks.
![]() |
Similar Threads
- Monitor Display problems (Monitors, Displays and Video Cards)
- Linux Assembly - how to output numbers instead of ASCII symbols (Assembly)
- "Save Target As.." isn't working in IE6 (Web Browsers)
- Need help displaying when user enters negative number? (C++)
- Cubing Digits Individually (C++)
- I need special stuff in my project like system("cls") (C++)
- IE 5.0 not displaying pages properly (Web Browsers)
- Polls fixed! (DaniWeb Community Feedback)
Other Threads in the ASP.NET Forum
- Previous Thread: ASP.NET Import/Export
- Next Thread: VS.Net compilation problem?
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn cac checkbox child class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol feedback findcontrol flash flv form forms gridview homeedition hosting iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings relationaldatabases rotatepage save search security serializesmo.table sessionvariables silverlight smartcard sql ssl suse textbox tracking treeview typeof unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml





