I have a form with a \"Clear\" button.
When the user clicks \"Clear\", I want to clear the value of all the visible elements on the form. In the case of date contro
For Each c In CONTAINER.Controls If TypeOf c Is TextBox Then c.Text = "" End If Next
Replace the (CONTAINER) by the name of yours (it may be a FORM, a PANEL, a GROUPBOX) Pay attention to which you had included your controls in.