INPUT MASK FOR TEXTBOX IN WINDOWS FORM

  • Thread starter Thread starter Val Mazur
  • Start date Start date
V

Val Mazur

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
 
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?
 
How about just formatting the string.

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

Dunnie
 
Back
Top