.net - Masked TextBox doesn't recognize 10 as ten -


for integer = 0 mtpig.text         messagebox.show(i)     next 

i used maskedtextbox 2-digit mask.
if put 10, shows 0 , 1.
if put 9, shows 0-9.

why doesn't read 0 next one? (10)
how can make 10 read as ten?
update:
enter image description here

alright, problem prompchar:0, 0s treated prompt character , discarded value.

to solve it, either

  • change promptchar _ (underscore)
  • or set maskedtextbox property named textmaskformat includeprompt

goog luck!!


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -