Solved

MaskedTextbox

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB 2005 Tooltips on Form Load Event 15 34
Get the selected ValueMember of Combobox 5 38
VB.net Open Folder in Windows Explorer 3 50
run a stored procedure from vb.net 1 27
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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 …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

789 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