Winodws Form Controls Listing?

  • Thread starter Thread starter Adam Right
  • Start date Start date
A

Adam Right

Hi,

I want to get the controls of the windows form. I know that
form.Controls give me the list of controls but i have a problem. For
example, the toolstripmenu control cannot be reached with that way. My goal
is to list the items of the toolstripmenuitem on the form. I have only the
typename of the windows form so i am invoking the form with its typename,
and i can reach the controls like buttons,labels etc. But i cannot get the
toolstripmenu, because it is not added as a control onto the form. So, is
there a way to get the list of such controls? I think it must be. Because
code intellisense gives me the all controls,members of the form when i hover
the mouse on the form name.

Thanks...

Adam.
 
Check the Items property of the ToolStrip.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 

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

Back
Top