getting the a list of controls on the form

K

Keith M

I am writting a non-visual component that can be dropped
on to a form. My problem is that I need to access the
other controls on this form. Is there any way to get to
the control collection property of the form from my
component?
 
G

Guest

I am inheriting from the Component class because I do not
have a visible control. My component is similar to the
Timer component. So I do not have a parent property.
 
A

AlexS

Possibly you set the form as parent for your control? If yes - then check
Form.Controls collection.
Otherwise you might try Form.FromHandle method to get Form reference in
control.

HTH
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top