Formatting textbox on the fly

  • Thread starter Thread starter Carlo
  • Start date Start date
C

Carlo

Hi
How do I get textbox text to be formatted on the fly as entering.
I have a textbox which will hold numerics larger than a million which I
want to autoformat i.e FormatNumber, so that it makes it easier for the
person inputting to visually see what they are entering i.e they could
enter 100000000 - difficult to see on the fly how many millions. I would
therefore like it to autoformat to 100,000,000 - lot easier to read

I tried:
dim frm2 as double
frm2 = txtNumber.Text
txtNumber.Text = FormatNumber(frm2)


but it gave an error when entering .02
 
Back
Top