Masked Text Box - Net 2.0

  • Thread starter Thread starter Jeff Williams
  • Start date Start date
J

Jeff Williams

I want to use the masked text box to do the following

1. to allow a 4 digit number to be entered - mask 0000
2. to allow currency value to be entered - mask 0,000,000.00

in example 1

when I set the this.mtb_ref.text = 65 I get displayed 6500 but what I
want displayed is 65 to the right of the box. I set the mtb to align right.

in example 2

when I set the this.mtb_amount.text = 1200.00 it displays as 1,200,000.00

What am I doing wrong.
 
Are you blanking out the rest of the text before tabbing out of the masked
text box?

When you tab into the box, does it select all the text so that ultimately
you end up replacing it?

Robin S.
 
Back
Top