Solved

MaskedTextbox

Posted on 2006-11-11
3
742 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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