Código vb:
Ver original
Dim c As Control Dim g As Control Dim p As Control For Each p In TabPage1.Controls If TypeOf p Is Panel Then For Each g In p.Controls If TypeOf g Is GroupBox Then For Each c In g.Controls If TypeOf c Is TextBox Then c.Enabled = True ElseIf TypeOf c Is ComboBox Then c.Enabled = True ElseIf TypeOf c Is CheckBox Then c.Enabled = True End If Next End If Next End If Next
como verán hago mi recorrido de controles por contenedor... yo los tengo en un tabcontrol así que comencé con mi tabpage1 después en los panel dentro de este y los groupbox dentro de este y los controles.






