Click here to Skip to main content
15,886,788 members
Home / Discussions / C#
   

C#

 
AnswerRe: Tabs not refresh Pin
Luc Pattyn15-Feb-09 17:28
sitebuilderLuc Pattyn15-Feb-09 17:28 
GeneralRe: Tabs not refresh Pin
CodingLover15-Feb-09 17:40
CodingLover15-Feb-09 17:40 
AnswerRe: Tabs not refresh Pin
Luc Pattyn16-Feb-09 0:02
sitebuilderLuc Pattyn16-Feb-09 0:02 
AnswerRe: Tabs not refresh Pin
Luc Pattyn15-Feb-09 17:12
sitebuilderLuc Pattyn15-Feb-09 17:12 
QuestionManaging application execution Pin
jimmov115-Feb-09 15:59
jimmov115-Feb-09 15:59 
AnswerRe: Managing application execution Pin
Luc Pattyn15-Feb-09 16:36
sitebuilderLuc Pattyn15-Feb-09 16:36 
QuestionConvert a string to Float (two numbers after the comma) Pin
abbd15-Feb-09 12:30
abbd15-Feb-09 12:30 
AnswerRe: Convert a string to Float (two numbers after the comma) [modified] Pin
Nico Patitz15-Feb-09 12:46
Nico Patitz15-Feb-09 12:46 
Here is only the quick'n'dirty version:

string tmp = "12.4454554";
tmp= tmp.Replace('.', ',');
double rounded=  Math.Round(System.Convert.ToDouble(tmp), 2);


for a clean solution have a look on IFormatProvider.

[edit]
 string tmp = "12.4454554";                
double rounded=  Math.Round(System.Convert.ToDouble(tmp,System.Globalization.CultureInfo.CreateSpecificCulture("en-us")), 2);

works too..

modified on Sunday, February 15, 2009 7:04 PM

QuestionChild controls interaction in User Control. [modified] Pin
hdv21215-Feb-09 11:39
hdv21215-Feb-09 11:39 
AnswerRe: Child controls interaction in User Control. Pin
Nico Patitz15-Feb-09 12:16
Nico Patitz15-Feb-09 12:16 
GeneralRe: Child controls interaction in User Control. Pin
hdv21215-Feb-09 12:18
hdv21215-Feb-09 12:18 
AnswerRe: Child controls interaction in User Control. Pin
_Maxxx_15-Feb-09 14:18
professional_Maxxx_15-Feb-09 14:18 
GeneralRe: Child controls interaction in User Control. Pin
hdv21215-Feb-09 21:11
hdv21215-Feb-09 21:11 
QuestionMy class Pin
Member 391685615-Feb-09 10:44
Member 391685615-Feb-09 10:44 
AnswerRe: My class Pin
DaveyM6915-Feb-09 11:24
professionalDaveyM6915-Feb-09 11:24 
AnswerRe: My class Pin
Christian Graus15-Feb-09 11:31
protectorChristian Graus15-Feb-09 11:31 
GeneralRe: My class Pin
Member 391685616-Feb-09 0:27
Member 391685616-Feb-09 0:27 
GeneralRe: My class Pin
Wes Aday16-Feb-09 4:11
professionalWes Aday16-Feb-09 4:11 
GeneralRe: My class Pin
Member 391685616-Feb-09 22:09
Member 391685616-Feb-09 22:09 
QuestionCircle creation in c# Pin
anishkannan15-Feb-09 7:36
anishkannan15-Feb-09 7:36 
AnsweryRe: Circle creation in c# Pin
DaveyM6915-Feb-09 9:01
professionalDaveyM6915-Feb-09 9:01 
GeneralRe: yRe: Circle creation in c# Pin
anishkannan15-Feb-09 17:36
anishkannan15-Feb-09 17:36 
Questionclient server architecture for web appln in C# Pin
madhuri pokharkar15-Feb-09 7:14
madhuri pokharkar15-Feb-09 7:14 
AnswerRe: client server architecture for web appln in C# Pin
DaveyM6915-Feb-09 7:40
professionalDaveyM6915-Feb-09 7:40 
AnswerRe: client server architecture for web appln in C# Pin
DaveyM6915-Feb-09 9:16
professionalDaveyM6915-Feb-09 9:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.