Link to home
Start Free TrialLog in
Avatar of slabrie99
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!
ASKER CERTIFIED SOLUTION
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slabrie99
slabrie99

ASKER

But how can I hide a child control of a userControl?  
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.Controls
       ...
    next

sorry, can't help you with this one.

AW
Thanks anyway!