MaskedTextbox

Hi folks

I have a program that reads a dataset. Im using vb 2005 and have a maskedtextbox. As a example of the problem,  a field in the dataset has a value ( numeric) or 75 but when it is read from the dataset it displays in the maskedtextbox as 750. I have the mask set as "000.00".

Help
stephenz43Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DEEPESHConnect With a Mentor Commented:
oh sorry it's not complete answer
you cans format ds field such as i did for textbox1
and set MaskedTextBox1.Mask ="00.000"

Example
        MaskedTextBox1.Text = Format(Val(TextBox1.Text), "#,###.#0")
        MsgBox(MaskedTextBox1.MaskedTextProvider.ToString)
0
 
newyuppieCommented:
set the mask to something like "###.##"
0
 
DEEPESHCommented:
I hpe it works for you
MsgBox(MaskedTextBox1.MaskedTextProvider.ToString)
0
All Courses

From novice to tech pro — start learning today.