How can I iterate through the Controls collection, checking whether the control is a textbox? Here's what I have so far:
Whatever I try after c.GetType gives me syntax errors. Thanks.VB Code:
For Each c In Controls If c.GetType Then End If Next
Printable View
How can I iterate through the Controls collection, checking whether the control is a textbox? Here's what I have so far:
Whatever I try after c.GetType gives me syntax errors. Thanks.VB Code:
For Each c In Controls If c.GetType Then End If Next
try >>
For Each c In Controls
If typeof(c) is textbox Then
End If
Next
Thanks persianboy. I thought of that last night in a duh! moment. I'm porting a vba app in Access to vb.net, so sometimes just follow the code there w/o thinking. I appreciate the help.