Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clear combo box and check box
Message
De
31/03/1999 08:14:21
 
 
À
31/03/1999 00:39:11
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00203749
Message ID:
00203809
Vues:
17
>Hi,
>
>I use as follow to clear text box : -
>
>For Each txtob In Me
> If TypeOf txtob Is TextBox Then
> txtob.Text = Empty
> End If
>Next
>
>And now I want to know how to clear combo box and check box.
>
>Your help will be much appreciated. Thank you.
>
>Annie


Dim Control As Control

For Each Control In Controls
If TypeOf Control Is ComboBox Then
Control.Clear
ElseIf TypeOf Control Is CheckBox Then
Control.value = 0
End If
Next Control
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform