Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Don't Validate
Message
From
08/02/2002 11:48:21
 
 
To
08/02/2002 11:42:03
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00617348
Message ID:
00617473
Views:
29
It still didn't work. I also made the Cancel button the next Active control, but the Validated and Validating events are still firing. Here is the code I put in the Events and actually the Cancel button is the Exit button which only has Me.Close(). Thanks for the help.
    Private Sub txtDate_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDate.Validated
        If Len(Me.txtDate.Text) > 0 Then
            Dispatch.ValidDate(Me.txtDate.Text)
            If piReturnID > 0 Then
                piReturnID = 0
                Me.cmdDefault.Enabled = False
                Me.cboRoute.Enabled = False
                Me.TabControl1.Enabled = False
                Me.cmdExit.Enabled = True
                Return
            End If

            Me.cmdDefault.Enabled = True
            Me.cboRoute.Enabled = True
        Else
            Me.cmdDefault.Enabled = False
            Me.cboRoute.Enabled = False
            Me.TabControl1.Enabled = False
        End If
    End Sub
Randy Belcher
AFG Industries, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform