Input string was not in correct format.
Posted
by jawahar-sync
on Stack Overflow
See other posts from Stack Overflow
or by jawahar-sync
Published on 2010-06-11T05:46:49Z
Indexed on
2010/06/11
5:52 UTC
Read the original article
Hit count: 221
.NET
|wpf-controls
Hi Experts,
I had a Ribbon like custom control. I created an application using this control. These applications work fine until I change the system number format. They crashes if I change the system number format like below:
Current Format = English (United State)
Decimal symbol = ','
- Digit group symbol = '.'
When I run applications, they throw an exception "Input string not in Correct format". .
Some other applications specify the Exception's message = "Input string '0,2,0,2' was not a correct format", so I think in Wpf ES's xaml files, we may declare some properties i.e Padding, Margin like "0,2,0,2" => that will cause errors with the system number format above.
I have note that this error only occurs in Windows Vista, it does not occurs on Windows XP. I do not know why?
I have also look at this link, But it not helps for Vista.
© Stack Overflow or respective owner