Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't Validate
Message
De
08/02/2002 11:43:35
 
 
À
08/02/2002 11:10:15
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00617337
Message ID:
00617467
Vues:
44
I don't know. I made the Cancel button the next Active control, but the Validated event is still firing. Here is the code in the Validated Event
and actually the Cancel button is the Exit button.
    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