Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating a textbox
Message
De
30/12/2004 18:19:08
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Validating a textbox
Divers
Thread ID:
00973432
Message ID:
00973432
Vues:
49
I am trying to validate a textbox and this seems to be extremely difficult in VB.NET. Basically, I have the following:
    Private Sub EncryptionKey_Validating(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EncryptionKey.Validating
        If EncryptionKey.TextLength < 8 Then
            MessageBox.Show("The length of the encryption key should be at least 8 characters", _
             "Mitchell CCS Monitor", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
        End If
    End Sub
But, this gives the error:

Method 'EncryptionKey_Validating' cannot handle Event 'Validating' because they do not have the same signature.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform