Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't Validate
Message
De
08/02/2002 11:48:21
 
 
À
08/02/2002 11:42:03
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00617348
Message ID:
00617473
Vues:
32
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform