Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating a textbox
Message
De
30/12/2004 18:37:30
Chris Bohling
Myers and Stauffer LC
Shawnee, Kansas, États-Unis
 
 
À
30/12/2004 18:19:08
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00973432
Message ID:
00973435
Vues:
17
>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", _
> ...
>But, this gives the error:
>
>Method 'EncryptionKey_Validating' cannot handle Event 'Validating' because they do not have the same signature.

You probably need to replace the "e as System.EventArgs" with "e As System.ComponentModel.CancelEventArgs."
Christopher Bohling, Consultant
http://www.ChristopherBohling.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform