slabrie99
asked on
Controls declaration.
Hi,
Is it possible, in run-time, to check how a control is declared? (Friend, private, ...)
Using this code:
for each ctl in form1.Controls
...
next
I don't need the private controls of my form.
So how to know if "ctl" is not private or protected?
Thanks!
Is it possible, in run-time, to check how a control is declared? (Friend, private, ...)
Using this code:
for each ctl in form1.Controls
...
next
I don't need the private controls of my form.
So how to know if "ctl" is not private or protected?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry, can't help you with this one.
AW
AW
ASKER
Thanks anyway!
ASKER
Even if I set the control to private using the "Modifiers" property, I'm still getting the private control ...
for each ctl in form1.userControl1.Control
...
next