K
Kevin L
I have the following loop:
Dim objPanel As Panel
For Each objPanel In Me.Controls
'do something here
Next
I receive an error when my loop encounters a control that is not a Panel
control.
I only want to perform actions on the Panel controls on my form and skip any
other type of control.
Is there a way to loop only through the Panel controls?
Dim objPanel As Panel
For Each objPanel In Me.Controls
'do something here
Next
I receive an error when my loop encounters a control that is not a Panel
control.
I only want to perform actions on the Panel controls on my form and skip any
other type of control.
Is there a way to loop only through the Panel controls?