textbox data format

  • Thread starter Thread starter Guest
  • Start date Start date
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!!
 
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>
 
Back
Top