MaskedTextBox Control – VB.NET 2005

I spent some time with the MaskedTextBox control which is new to VB.NET 2005 and thought I would share some code and links. I will post a code example shortly (See Below), but for now here are some links to information.

Microsoft’s online help for the control is here.

A list of Mask values is here.

A few notes:

To require a digit be entered use 0, use # for optional digit entry. I don’t think this was available in the VB 6 version of the control.

You will need to check the MaskCompleted property to insure the mask is filled out as required by the mask.

Here is the code:

MaskedTextBox Example (zip file – 16 kb) VB.NET 2005

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 thoughts on “MaskedTextBox Control – VB.NET 2005”