Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 752
  • Last Modified:

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
0
stephenz43
Asked:
stephenz43
  • 2
1 Solution
 
newyuppieCommented:
set the mask to something like "###.##"
0
 
DEEPESHCommented:
I hpe it works for you
MsgBox(MaskedTextBox1.MaskedTextProvider.ToString)
0
 
DEEPESHCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now