E
ECathell
I had this:
dim t as new textbox
for each t in me.controls
'do something
next
but I am getting an error...so I tried doing this and it worked:
Dim c As New Control
For Each c In Me.Controls
If c.GetType Is GetType(System.Windows.Forms.TextBox) Then
c.BackColor = Color.HotPink
End If
Next
whyizit? I am sure I have done it the above way previously...
dim t as new textbox
for each t in me.controls
'do something
next
but I am getting an error...so I tried doing this and it worked:
Dim c As New Control
For Each c In Me.Controls
If c.GetType Is GetType(System.Windows.Forms.TextBox) Then
c.BackColor = Color.HotPink
End If
Next
whyizit? I am sure I have done it the above way previously...