I have this little snipped of code iterates through all the controls on this form. But while it gives me the control it does not expose the RealOnly or property or the Clear method. What am I doing wrong?
Dim cControl As Control
For Each cControl In Me.Controls
If (TypeOf cControl Is TextBox) Or (TypeOf cControl Is CheckBox) Then
-->>> I would like to have cControl.ReadOnly = False but it's not exposed here !!!