Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Sub ClearBoxes(parent As Control)
- For Each child As Control In parent.Controls
- ClearBoxes(child)
- Next
- If TryCast(parent, TextBox) IsNot Nothing Then
- TryCast(parent, TextBox).Text = ""
- End If
- If TryCast(parent, ComboBox) IsNot Nothing Then
- TryCast(parent, ComboBox).SelectedIndex = -1
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment