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

C#

 
AnswerRe: Read Excel Pin
5do86-Jul-08 16:24
5do86-Jul-08 16:24 
GeneralRe: Read Excel Pin
Christian Graus6-Jul-08 16:40
protectorChristian Graus6-Jul-08 16:40 
QuestionDisable form when closing child form Pin
Deresen6-Jul-08 7:05
Deresen6-Jul-08 7:05 
AnswerRe: Disable form when closing child form Pin
Harvey Saayman6-Jul-08 7:28
Harvey Saayman6-Jul-08 7:28 
AnswerRe: Disable form when closing child form Pin
N a v a n e e t h6-Jul-08 7:29
N a v a n e e t h6-Jul-08 7:29 
Questionproblem with converting to Double Pin
Rick van Woudenberg6-Jul-08 7:01
Rick van Woudenberg6-Jul-08 7:01 
AnswerRe: problem with converting to Double Pin
Deresen6-Jul-08 7:13
Deresen6-Jul-08 7:13 
AnswerRe: problem with converting to Double Pin
Luc Pattyn6-Jul-08 7:23
sitebuilderLuc Pattyn6-Jul-08 7:23 
Hi Rick,

ToString() when applied to numbers will by default use the regional settings of your system,
which define a "decimal point" (not necessarily a period) and a "thousands separator" (not
necessarily a comma).

Parse() and TryParse() will observe the "decimal point" and ignore the "thousands separator".

If you have a number formatted one way (say West-European way, with decimal comma, and thousands
period) and parsed another way (say US way), you will get wrong results, and even an Exception
when more than one thousands separator is present.

The solution is NOT to replace periods by comma and vice versa, the solution is to apply
the appropriate settings, by using a FormatProvider or CultureInfo.

The above applies not only to doubles, but also to floats and decimals.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


QuestionHow Do I Save the Contents of a WebPage without using A WebBrowser? Pin
That Asian Guy6-Jul-08 6:40
That Asian Guy6-Jul-08 6:40 
AnswerRe: How Do I Save the Contents of a WebPage without using A WebBrowser? Pin
Luc Pattyn6-Jul-08 7:24
sitebuilderLuc Pattyn6-Jul-08 7:24 
QuestionCheck for the status of Windows Form Pin
ASysSolvers6-Jul-08 4:21
ASysSolvers6-Jul-08 4:21 
AnswerRe: Check for the status of Windows Form Pin
Luc Pattyn6-Jul-08 4:43
sitebuilderLuc Pattyn6-Jul-08 4:43 
QuestionIs Interface implementation Correct Pin
Navneet Hegde6-Jul-08 3:37
Navneet Hegde6-Jul-08 3:37 
AnswerRe: Is Interface implementation Correct Pin
leppie6-Jul-08 3:52
leppie6-Jul-08 3:52 
Questioncan i drive a class from a delegate Pin
Pankaj Garg6-Jul-08 3:29
Pankaj Garg6-Jul-08 3:29 
AnswerRe: can i drive a class from a delegate Pin
leppie6-Jul-08 3:53
leppie6-Jul-08 3:53 
AnswerRe: can i drive a class from a delegate Pin
leppie6-Jul-08 3:55
leppie6-Jul-08 3:55 
GeneralRe: can i drive a class from a delegate Pin
Pete O'Hanlon6-Jul-08 8:55
mvePete O'Hanlon6-Jul-08 8:55 
GeneralRe: can i drive a class from a delegate Pin
leppie6-Jul-08 9:17
leppie6-Jul-08 9:17 
GeneralRe: can i drive a class from a delegate Pin
Pete O'Hanlon6-Jul-08 9:24
mvePete O'Hanlon6-Jul-08 9:24 
GeneralRe: can i drive a class from a delegate Pin
leppie6-Jul-08 9:45
leppie6-Jul-08 9:45 
AnswerRe: can i drive a class from a delegate Pin
N a v a n e e t h6-Jul-08 4:05
N a v a n e e t h6-Jul-08 4:05 
QuestionC# WINFORMS' Threading Apllication halt while Desktop Theme Change Pin
S Raheel Noor6-Jul-08 3:11
S Raheel Noor6-Jul-08 3:11 
QuestionApplied Application Development - Book recommendation sought [modified] Pin
DwR6-Jul-08 2:29
DwR6-Jul-08 2:29 
AnswerRe: Applied Application Development - Book recommendation sought Pin
DwR6-Jul-08 23:26
DwR6-Jul-08 23:26 

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.