Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox Data Masks

Status
Not open for further replies.

Ragnarox

Programmer
Oct 2, 2003
141
US
Hello all,

I have set up a mask for a textbox, that will display an integer as money. The problem is that when i go to save it it tries to save the mask into the database as well. Do the masks in VB.Net not get stripped out when you are saving, or is there a place that i have to set it up to pull the masks out? Currently i have functions that will restore the value back to an integer, but if it will do it on its own i would rather it be done that way.

Any help, as always, is greatly appreciated.

Brian
 
What maskeditbox or other method are you using?

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Christiaan,

Here is how we are doing the masking for the text boxes.

Dim ShortDollarAmount As String = "$#,###,##0"

Then in the sub that place the data into the textboxes we have this :

txtEmployeeMin.Text = Format(dr("EmployeeMin"), ShortDollarAmount)

Hope this clears up what we are doing,

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top