IFormat or something like that???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Tell me please,

1. if I am going to show numbers with distances between zeros like: 20 000 000, how should I code it
2. if I set the propersty of 'numbers' for a textbox to true, then I can not use points for fload or double numbers, how could I solve this? is there any way to make textboxes only receive numbers and points

Thanks in advance
Tonya.
 
1. Use smoething like:

System.Globalization.NumberFormatInfo nfi = new
System.Globalization.CultureInfo("en-US", false).NumberFormat;
double ffn= 1234567.89012;
nfi.NumberGroupSeparator = " ";
textBox1.Text=ffn.ToString("N", nfi);

2. Perhaps use a regular expression test on the TextChanged event.

Bern

Tonya said:
Tell me please,

1. if I am going to show numbers with distances between zeros like: 20 000 000, how should I code it?
2. if I set the propersty of 'numbers' for a textbox to true, then I can
not use points for fload or double numbers, how could I solve this? is there
any way to make textboxes only receive numbers and points?
 
Back
Top