Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating a textbox
Message
From
30/12/2004 18:37:30
 
 
To
30/12/2004 18:19:08
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00973432
Message ID:
00973435
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform