Solved

MaskedTextbox

Posted on 2006-11-11
3
740 Views
Last Modified: 2008-01-09
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
Comment
Question by:stephenz43
  • 2
3 Comments
 
LVL 13

Expert Comment

by:newyuppie
ID: 17922978
set the mask to something like "###.##"
0
 
LVL 5

Expert Comment

by:DEEPESH
ID: 17927947
I hpe it works for you
MsgBox(MaskedTextBox1.MaskedTextProvider.ToString)
0
 
LVL 5

Accepted Solution

by:
DEEPESH earned 500 total points
ID: 17927971
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now