How create Mask Edit Control in VB.NET
Hi!
Yes, in VB 6.0 there is Mask Edit Control.
But is based on AcriveX.
I couldn't find any othes properties for any othes
controls that allow to Mask information being inputted.
In our project we decided to do not use ane ActiveX
objects.
So, does somebody have any idea?
Thanks for any information.
Dima.
Re: How create Mask Edit Control in VB.NET
How do you load data into the masked edit box with data taken from a database. It does not work for me?
This is the code I am using but to no avail. It works for a std textbox but not the masked edit. I have the mask set to "999-999-9999"
mbxHomePhone.text = data.Rows(intPos).Item(8)
I use this for the regular textbox and it works fine.
txtCity.Text = data.Rows(intPos).Item(5)
Re: How create Mask Edit Control in VB.NET
I suggest you read the following MSDN help topic and then follow the "Properties, Methods, and Events" link at the bottom.
http://msdn.microsoft.com/library/de...bjmaskedit.asp
Re: How create Mask Edit Control in VB.NET
Here is a free .NET control someone built for MaskedEditBox:
http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp
So you don't have to use the old control
Re: How create Mask Edit Control in VB.NET
Wait, cant you use .net's requiredfieldvalidators to replicate the behaviour of masked controls in Vb.NET.
please enlighten me.
Re: How create Mask Edit Control in VB.NET
Quote:
Originally Posted by ambreesh
Wait, cant you use .net's requiredfieldvalidators to replicate the behaviour of masked controls in Vb.NET.
please enlighten me.
I don't know whether that would work or not, but it's Web-only anyway.