Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formating TextBox
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00725586
Message ID:
00727794
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform