This is in addition to another question i posted https://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_22922429.html?cid=239
I wanted to clear all the text boxes on each tab page with in the tab control. I have done this, so i now have the following:
Dim ctl As Object
For Each tp As TabPage In tabs.TabPages
For Each ctl In tp.Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
ElseIf TypeOf ctl Is CheckBox Then
ctl.checked = False
ElseIf TypeOf ctl Is ComboBox Then
ctl.SelectedIndex = -1
However, i have now added GroupBoxes to some tabs which within the contain textboxes. So i now want to clear all the text boxes in the tab pages but also in the group boxes with in the tab pages too.
How do i modify this code to do this?