We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

using mask for ".net textbox"

i don't want to use vb6 maskedbox. but how can i apply mask a textbox (like a tel. number " (___) ___ __ __ "

3 Replies

JO John March 27, 2003 01:39 PM UTC

use regular expressions

SA Sameer April 25, 2003 03:39 PM UTC

Capture the OnKeyDown for the Textbox and then use regular expression. A good post http://www.codeproject.com/cs/miscctrl/maskedcsedit.asp?target=maskedtextbox I think this one will abt solve ur problems > use regular expressions

RP Ramesh Praveen Syncfusion Team April 29, 2003 07:09 PM UTC

In case you are not aware, Essential Tools comes with a Masked Edit box. -Praveen

Live Chat Icon For mobile
Up arrow icon