Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Win Forms text box masks

How can I put mask on win form text box so that it allows only numbers? And how it works for another masks data, phone zip etc.

I am using Visual Studio 2008 C#

Thanks.

like image 805
eomeroff Avatar asked Feb 14 '10 01:02

eomeroff


1 Answers

You can use the MaskedTextBox control

http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx

like image 80
Brett Allen Avatar answered Oct 02 '22 03:10

Brett Allen