|
|
|
| Title | Clear the TextBoxes on a form |
| Keywords | TextBox, clear, erase, reset |
| Categories | Controls |
|
|
|
Loop through the Controls collection. For each TextBox, set its Text property to "".
|
|
' Clear all TextBoxes on the form.
Private Sub ClearTextBoxes()
Dim ctl As Control
' Clear all the TextBoxes on the form.
For Each ctl In Controls
If TypeOf ctl Is TextBox Then ctl.Text = ""
Next ctl
End Sub
|
| |
|
| |
|
|