Click here to Skip to main content
15,893,368 members
Home / Discussions / C#
   

C#

 
GeneralRe: can we force the GC to collect memory . Pin
Christian Graus15-Feb-09 19:58
protectorChristian Graus15-Feb-09 19:58 
GeneralRe: can we force the GC to collect memory . Pin
Wes Aday16-Feb-09 4:09
professionalWes Aday16-Feb-09 4:09 
GeneralRe: can we force the GC to collect memory . Pin
N a v a n e e t h15-Feb-09 20:58
N a v a n e e t h15-Feb-09 20:58 
QuestionTreeview document to save existing xml file... Pin
raj23136215-Feb-09 18:47
raj23136215-Feb-09 18:47 
QuestionHow save treeview xml document to xml document Pin
raj23136215-Feb-09 18:46
raj23136215-Feb-09 18:46 
QuestionHow to select parents nodes of a child node Pin
Gonxh Aniket15-Feb-09 17:56
Gonxh Aniket15-Feb-09 17:56 
QuestionTabs not refresh Pin
CodingLover15-Feb-09 16:15
CodingLover15-Feb-09 16:15 
AnswerRe: Tabs not refresh Pin
Luc Pattyn15-Feb-09 16:30
sitebuilderLuc Pattyn15-Feb-09 16:30 
GeneralRe: Tabs not refresh Pin
CodingLover15-Feb-09 16:56
CodingLover15-Feb-09 16:56 
AnswerRe: Tabs not refresh Pin
Luc Pattyn15-Feb-09 17:01
sitebuilderLuc Pattyn15-Feb-09 17:01 
NewsRe: Tabs not refresh Pin
CodingLover15-Feb-09 17:15
CodingLover15-Feb-09 17:15 
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 

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.