Ver Mensaje Individual
  #8 (permalink)  
Antiguo 26/07/2011, 11:35
Avatar de rikakashi
rikakashi
 
Fecha de Ingreso: julio-2011
Mensajes: 226
Antigüedad: 12 años, 9 meses
Puntos: 33
Respuesta: componentes enabled disabled winforms

Muchas gracias!!! me resulto asi
Código vb:
Ver original
  1. Dim c As Control
  2.         Dim g As Control
  3.         Dim p As Control
  4.  
  5.         For Each p In TabPage1.Controls
  6.             If TypeOf p Is Panel Then
  7.                 For Each g In p.Controls
  8.                     If TypeOf g Is GroupBox Then
  9.                         For Each c In g.Controls
  10.                             If TypeOf c Is TextBox Then
  11.                                 c.Enabled = True
  12.                             ElseIf TypeOf c Is ComboBox Then
  13.                                 c.Enabled = True
  14.                             ElseIf TypeOf c Is CheckBox Then
  15.                                 c.Enabled = True
  16.                             End If
  17.                         Next
  18.                     End If
  19.                 Next
  20.             End If
  21.         Next