textbox data format

G

Guest

I have a windows form that display's telephone numbers and dates. I am using
C#. I cannot find a way to format a phone number "(xxx) yyy-zzzz". Can
someone point me in the right direction!!
 
H

Herfried K. Wagner [MVP]

nbohana said:
I have a windows form that display's telephone numbers and dates. I am
using
C#. I cannot find a way to format a phone number "(xxx) yyy-zzzz". Can
someone point me in the right direction!!

<URL:http://www.codeproject.com/cs/miscctrl/maskedcsedit.asp>
<URL:http://www.codeproject.com/vb/net/maskedbox_control.asp>
<URL:http://www.codeproject.com/vb/net/validtext3.asp>
<URL:http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp>
<URL:http://www.codeproject.com/useritems/ValidText.asp>
....

..NET 2.0 will contain a masked edit control.

In some situation using an ErrorProvider to make the user aware of malformed
input can be more appropriate:

Validator Controls for Windows Forms
<URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet04082003.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top