Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to handle this Event ? Pin
Paramu197320-Jan-12 18:43
Paramu197320-Jan-12 18:43 
GeneralRe: How to handle this Event ? Pin
Eddy Vluggen21-Jan-12 1:40
professionalEddy Vluggen21-Jan-12 1:40 
AnswerRe: How to handle this Event ? PinPopular
BobJanova19-Jan-12 1:01
BobJanova19-Jan-12 1:01 
GeneralRe: How to handle this Event ? Pin
Paramu197320-Jan-12 18:44
Paramu197320-Jan-12 18:44 
QuestionThreading and events Pin
Giorgi Nistor18-Jan-12 21:57
Giorgi Nistor18-Jan-12 21:57 
AnswerRe: Threading and events Pin
BobJanova19-Jan-12 0:57
BobJanova19-Jan-12 0:57 
GeneralRe: Threading and events Pin
Giorgi Nistor19-Jan-12 22:35
Giorgi Nistor19-Jan-12 22:35 
QuestionMaskedTextBox - Different behavior on different machines, Why? Pin
Michel8318-Jan-12 20:52
Michel8318-Jan-12 20:52 
Hi
I'm having a weird bug in my application. This is my first time in this forum I hope you can help me because this bug is making me crazy.

It's a desktop application where I have a form with some MaskedTextBox in it. The goal of these text boxes is allow the user to introduce values with format "000.000".

When the user modifies the textbox, the value is stored in a internal variable and until then everything works fine. The problem appear when the application reloads the textbox control from the variable. In my computer the value is retrieved correctly, the application shows in the text box the same value the user has introduced before, but in some computers the value is retrieved wrong. For instance, the user inserts 001.000 and when the application reloads the control, the value updates to 100.000.
First time I thought that it would be a Culture issue, but the user uses the same as mine (es-ES) and I have included information about culture in the code (invariant culture). This is the definition of the textbox:

C#
this.tbxFrequency10.Culture = new System.Globalization.CultureInfo("");
this.tbxFrequency10.Location = new System.Drawing.Point(177, 254);
this.tbxFrequency10.Mask = "000.000";
this.tbxFrequency10.Name = "tbxFrequency10";
this.tbxFrequency10.PromptChar = '0';
this.tbxFrequency10.Size = new System.Drawing.Size(135, 20);
this.tbxFrequency10.TabIndex = 116;
this.tbxFrequency10.TextMaskFormat = System.Windows.Forms.MaskFormat.IncludePromptAndLiterals;
this.tbxFrequency10.Validated += new System.EventHandler(this.Control_Validated);


The main problem here is I can't reproduce the bug the user has. Just in case I changed my Windows regional configuration in order to try to reproduce the bug but with no success. Anyone has an idea about what could be the reason of this bug?

Thanks in advance. Sorry for my english.

Regards,
AnswerRe: MaskedTextBox - Different behavior on different machines, Why? Pin
Eddy Vluggen19-Jan-12 0:27
professionalEddy Vluggen19-Jan-12 0:27 
AnswerRe: MaskedTextBox - Different behavior on different machines, Why? Pin
BobJanova19-Jan-12 0:51
BobJanova19-Jan-12 0:51 
GeneralRe: MaskedTextBox - Different behavior on different machines, Why? Pin
Michel8319-Jan-12 1:24
Michel8319-Jan-12 1:24 
QuestionBest Way To Handle Nulls Pin
Kevin Marois18-Jan-12 11:08
professionalKevin Marois18-Jan-12 11:08 
AnswerRe: Best Way To Handle Nulls Pin
PIEBALDconsult18-Jan-12 11:26
mvePIEBALDconsult18-Jan-12 11:26 
GeneralRe: Best Way To Handle Nulls Pin
fjdiewornncalwe18-Jan-12 11:31
professionalfjdiewornncalwe18-Jan-12 11:31 
GeneralRe: Best Way To Handle Nulls Pin
PIEBALDconsult18-Jan-12 12:21
mvePIEBALDconsult18-Jan-12 12:21 
GeneralRe: Best Way To Handle Nulls Pin
Kevin Marois18-Jan-12 11:53
professionalKevin Marois18-Jan-12 11:53 
GeneralRe: Best Way To Handle Nulls Pin
PIEBALDconsult18-Jan-12 12:17
mvePIEBALDconsult18-Jan-12 12:17 
GeneralRe: Best Way To Handle Nulls Pin
BobJanova18-Jan-12 22:28
BobJanova18-Jan-12 22:28 
GeneralRe: Best Way To Handle Nulls Pin
PIEBALDconsult19-Jan-12 2:20
mvePIEBALDconsult19-Jan-12 2:20 
GeneralRe: Best Way To Handle Nulls Pin
jschell19-Jan-12 8:34
jschell19-Jan-12 8:34 
GeneralRe: Best Way To Handle Nulls Pin
PIEBALDconsult19-Jan-12 13:47
mvePIEBALDconsult19-Jan-12 13:47 
GeneralRe: Best Way To Handle Nulls Pin
BobJanova19-Jan-12 22:14
BobJanova19-Jan-12 22:14 
GeneralRe: Best Way To Handle Nulls Pin
PIEBALDconsult20-Jan-12 2:15
mvePIEBALDconsult20-Jan-12 2:15 
GeneralRe: Best Way To Handle Nulls Pin
jschell20-Jan-12 12:08
jschell20-Jan-12 12:08 
GeneralRe: Best Way To Handle Nulls Pin
PIEBALDconsult20-Jan-12 14:57
mvePIEBALDconsult20-Jan-12 14:57 

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.