By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,830 Members | 1,724 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,830 IT Pros & Developers. It's quick & easy.

INPUT MASK FOR TEXTBOX IN WINDOWS FORM

P: n/a
Hello.
How can I set input mask for TextBox in Windows Form?
For example I want to mask (format) TextBox for inputing phone number like
(999) 999-99-99.
The TextBox must first show something like this: (___) ___-__-__

How can I do this?
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

You should post into specific newsgroup, otherwise it is confusing if it is
related to VS6 or VS.NET development. Please post into right group and do
not cross post

--
Val Mazur
Microsoft MVP
"msnews.microsoft.com" <da*********@hotmail.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
Hello.
How can I set input mask for TextBox in Windows Form?
For example I want to mask (format) TextBox for inputing phone number like
(999) 999-99-99.
The TextBox must first show something like this: (___) ___-__-__

How can I do this?

Nov 16 '05 #2

P: n/a
How about just formatting the string.

Private Sub Command1_Click()
Text1.Text = Format(Text1, "(000)000-0000")
End Sub

Dunnie

"msnews.microsoft.com" <da*********@hotmail.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
Hello.
How can I set input mask for TextBox in Windows Form?
For example I want to mask (format) TextBox for inputing phone number like
(999) 999-99-99.
The TextBox must first show something like this: (___) ___-__-__

How can I do this?

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.