Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formating TextBox
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00725586
Message ID:
00727794
Views:
22
Here is the parse eventhandler:
Private Sub MyParser(sender As Object, cevent As ConvertEventArgs)
    If Not New Regex("\d{3}-\d{2}-\d{4}").IsMatch(Me.Text) Then
        MessageBox.Show("Enter a valid SSN.")
        Return
    End If
    Dim mystr As String = cevent.Value.ToString()
    cevent.Value = mystr.Substring(0, 3) & mystr.Substring(4, 2) & mystr.Substring(7, 4)
End Sub
>Cathi:
>
>BTW, the parse command how should look after you enter your social security.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform