Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clear combo box and check box
Message
From
31/03/1999 08:14:21
 
 
To
31/03/1999 00:39:11
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00203749
Message ID:
00203809
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform