Click here to Skip to main content
16,020,974 members

Comments by marcelle ngounou (Top 5 by date)

marcelle ngounou 23-Aug-12 10:26am View    
hi Vani,

finally i have made it. Thanks, i was forced to do it this way:


private void txtMtCategorie_TextChanged(object sender, EventArgs e)
{
if (txtMtCategorie.Text != "")
{
int Mavaleur = int.Parse(txtMtCategorie.Text.ToString().Trim(), System.Globalization.NumberStyles.AllowThousands);

txtMtCategorie.Text = Mavaleur.ToString("#,##0", new System.Globalization.CultureInfo("fr-FR"));
}
}

It works! is that a good way to do it?
thanks
marcelle ngounou 23-Aug-12 9:55am View    
I havetry the links on stackoverflow.com, it doesn't work.
when i write "txtMtCategorie.Text.ToString("#,##0", new System.Globalization.CultureInfo("fr-FR"));"
i have this error "Error 1 No overload for method 'ToString' takes 2 arguments "
....
marcelle ngounou 23-Aug-12 9:40am View    
Hi, Vani
Thanks for your help, but it does not solve the problem. Because, the MaskedEditTexbox, limit the number of digit, thus i don't want it to be limited... and if your mask is "000 000", if you write "500 00_" is very different from "50 000" that should be seen.
marcelle ngounou 23-Aug-12 9:29am View    
is just mean that if the user types 10000, we should have 10 000. if he types 1 we should have 1.
thanks
marcelle ngounou 23-Aug-12 9:27am View    
Is true but,
when you use the crystal reportviewer there is no functions, to let you know that the user has chosen to print...