G
Guest
I placed a menustrip on a form; is there any way to read the individual
menustripitems from the form?
I usually would have done this by using the forms controlcollection. There I
can find the menustrip control, but I would have expected to find the
menustripitems as children from the menustrip. However my
menustrip.controls.count = 0, although when running the form the menu work
properly.
Also trying to add the menu to a panel and the panel to the form does not
change the behaviour;
What´s wrong with that approach??
(Have read a number of articles of a recursive routine to run through the
containers of the form, but the actual problem is that my menustrip items are
not in the menustrip nor is the menustrip considered as a container which
could contain menustripitems)
Any comments are welcome.
Thanks.
menustripitems from the form?
I usually would have done this by using the forms controlcollection. There I
can find the menustrip control, but I would have expected to find the
menustripitems as children from the menustrip. However my
menustrip.controls.count = 0, although when running the form the menu work
properly.
Also trying to add the menu to a panel and the panel to the form does not
change the behaviour;
What´s wrong with that approach??
(Have read a number of articles of a recursive routine to run through the
containers of the form, but the actual problem is that my menustrip items are
not in the menustrip nor is the menustrip considered as a container which
could contain menustripitems)
Any comments are welcome.
Thanks.