Can Any one help with this i am trying to loop through the text boxes on a form
i have tried
Private Sub SetControls()
Dim cControl As Control
For Each cControl InMe.Controls
If (TypeOf cControl Is TextBox) Then
cControl.Text = "abc"
End If
Next cControl
End Sub
This only gives me the main controls panel and tabs etc it does not give me the text boxes on these controls
Thanks in Advance
nick
Visual studio .net
i have tried
Private Sub SetControls()
Dim cControl As Control
For Each cControl InMe.Controls
If (TypeOf cControl Is TextBox) Then
cControl.Text = "abc"
End If
Next cControl
End Sub
This only gives me the main controls panel and tabs etc it does not give me the text boxes on these controls
Thanks in Advance
nick
Visual studio .net