• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 756
  • 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

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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