Ok i am having a blond moment(no offense haha).
I got on my form textboxes, checboxes but also a groupbox which holds texboxes.
The idea is to be able to clear and reset all of these by clicking a reset button.
At the moment i got this
Private Sub ClearFields() Dim ctrl As Control For Each ctrl In Me.Controls If ctrl.GetType Is GetType(TextBox) Then ctrl.Text = "" ElseIf ctrl.GetType Is GetType(CheckBox) Then Dim chkbx As CheckBox = ctrl chkbx.Checked = False End If Next End Sub
But ofc Me.controls isn't gonna get involved with the stuff in the groupbox.
Can someone help me point out what i need to use again so it will will clear the textboxes in the groupbox also?