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

Click here to load this message in the networking platform