469,963 Members | 1,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Winodws Form Controls Listing?

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.
Mar 22 '06 #1
1 1243
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.

"Adam Right" <ad**@right.com> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl...
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.

Mar 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by EJO | last post: by
5 posts views Thread by Genojoe | last post: by
reply views Thread by david_cabaniuk | last post: by
22 posts views Thread by Victor | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.