Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
Questionmultiple dropdown list in excel file Pin
Member 1417992812-Mar-19 7:36
Member 1417992812-Mar-19 7:36 
QuestionRe: multiple dropdown list in excel file Pin
Richard MacCutchan12-Mar-19 7:52
mveRichard MacCutchan12-Mar-19 7:52 
AnswerRe: multiple dropdown list in excel file Pin
Member 1417992812-Mar-19 8:01
Member 1417992812-Mar-19 8:01 
GeneralRe: multiple dropdown list in excel file Pin
Richard MacCutchan12-Mar-19 8:35
mveRichard MacCutchan12-Mar-19 8:35 
QuestionCatch JavaScript errors Pin
dataminers11-Mar-19 0:43
dataminers11-Mar-19 0:43 
AnswerRe: Catch JavaScript errors Pin
OriginalGriff11-Mar-19 1:49
mveOriginalGriff11-Mar-19 1:49 
Rant[REPOST] Catch JavaScript errors Pin
Richard Deeming11-Mar-19 9:22
mveRichard Deeming11-Mar-19 9:22 
QuestionSizeF and InvariantCulture Pin
Bernhard Hiller11-Mar-19 0:38
Bernhard Hiller11-Mar-19 0:38 
What results do you think following code produces:
SizeF size = new SizeF(100.12f, 50.34f);
string result1 = Convert.ToString(size, CultureInfo.InvariantCulture);
string result2 = Convert.ToString(size, CultureInfo.GetCultureInfo("en-US"));
string result3 = size.ToString();
string result4 = FormattableString.Invariant($"{size}");
{Width=100.12, Height=50.34}, of course!?

But, alas, the result is always:
{Width=100,12, Height=50,34} with a decimal comma instead of a decimal point.

As a side note: "{" + string.Format(CultureInfo.InvariantCulture, "Width={0},Height={1}", size.Width, size.Height) + "}" returns the expected result.

That happens on my Windows 7 machine with a German OS.

Now I am a little confused...

I know that there's a SizeFConverter, but that would make things too complicated. I have a function which receives an object, converts that to a string and transfers the string to a different machine where the value should be parsed to a SizeF again.

(This post could also fit into the "Weird and Wonderful" category...
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

AnswerRe: SizeF and InvariantCulture Pin
OriginalGriff11-Mar-19 1:59
mveOriginalGriff11-Mar-19 1:59 
GeneralRe: SizeF and InvariantCulture Pin
Bernhard Hiller11-Mar-19 4:19
Bernhard Hiller11-Mar-19 4:19 
GeneralRe: SizeF and InvariantCulture Pin
OriginalGriff11-Mar-19 4:56
mveOriginalGriff11-Mar-19 4:56 
AnswerRe: SizeF and InvariantCulture Pin
BillWoodruff11-Mar-19 22:04
professionalBillWoodruff11-Mar-19 22:04 
QuestionUsing different versions of Visual Studio Pin
Brian_TheLion9-Mar-19 19:37
Brian_TheLion9-Mar-19 19:37 
AnswerRe: Using different versions of Visual Studio Pin
OriginalGriff9-Mar-19 19:57
mveOriginalGriff9-Mar-19 19:57 
GeneralRe: Using different versions of Visual Studio Pin
Brian_TheLion9-Mar-19 23:25
Brian_TheLion9-Mar-19 23:25 
GeneralRe: Using different versions of Visual Studio Pin
OriginalGriff9-Mar-19 23:30
mveOriginalGriff9-Mar-19 23:30 
GeneralRe: Using different versions of Visual Studio Pin
Brian_TheLion9-Mar-19 23:50
Brian_TheLion9-Mar-19 23:50 
GeneralRe: Using different versions of Visual Studio Pin
OriginalGriff9-Mar-19 23:51
mveOriginalGriff9-Mar-19 23:51 
QuestionReference type copy change in foreach Pin
Member 130741338-Mar-19 12:30
Member 130741338-Mar-19 12:30 
AnswerRe: Reference type copy change in foreach Pin
Dave Kreskowiak8-Mar-19 13:35
mveDave Kreskowiak8-Mar-19 13:35 
QuestionIonic.Zip Date Problems. Pin
ormonds7-Mar-19 17:30
ormonds7-Mar-19 17:30 
AnswerRe: Ionic.Zip Date Problems. Pin
Dave Kreskowiak8-Mar-19 3:58
mveDave Kreskowiak8-Mar-19 3:58 
GeneralRe: Ionic.Zip Date Problems. Pin
ormonds10-Mar-19 11:31
ormonds10-Mar-19 11:31 
Questionwpf proble with DataGridTextColumn.HeaderTemplate Pin
Member 45620987-Mar-19 6:03
Member 45620987-Mar-19 6:03 
AnswerRe: wpf proble with DataGridTextColumn.HeaderTemplate Pin
OriginalGriff7-Mar-19 6:40
mveOriginalGriff7-Mar-19 6:40 

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.