Ok, maybe I am going about this all wrong, but I am reasonably experienced with VBA/Access but I am trying to reproduce a form from it in VB.NET (after having read a VB.NET book...thought this would help me explorer my lack of knowledge) - I want to do the simple task of enabling and disabling controls, sometimes groups of controls, when certain events occur (i.e. cancel or search button click).
This is the code I used in VBA, what would be the same in VB.NET?
Dim ctrl As Control
For Each ctrl In Detail.Controls
If ctrl.ControlType = acTextBox Or ctrl.ControlType = acComboBox Then
ctrl.Enabled = False
End If
Next
Groups of controls effected, except specific ones.
Thanks
This is the code I used in VBA, what would be the same in VB.NET?
Dim ctrl As Control
For Each ctrl In Detail.Controls
If ctrl.ControlType = acTextBox Or ctrl.ControlType = acComboBox Then
ctrl.Enabled = False
End If
Next
Groups of controls effected, except specific ones.
Thanks