Hi,
My App uses VB.Net 2005.
In a new form I add a MenuStrip1 and design a few entries for it. The design
aspect is OK.
1) When I run the app, the form shows an EMPTY Menu strip (I can assure that
all entries are set "visible").
2) Now, if I just copy/paste the MenuStrip1 on the form, my form has now 2
identical MenuStrips : MenuStrip1 and MenuStrip2 . When run, the form show
the 2 strips, the first is valid (shows my entries) (in my opinion, this
shows that the design of MenuStrip1 is OK) but the second is empty.
3) Now if I delete MenuStrip2, the form is still ok at design level, but at
run time, MenuStrip1 is empty again!
Can you suggest any clue? I am stuck, unable to set menus in my forms.
Another problem with MenuStrip : In another form, a quite complex Menustrip
works perfect. But, at design time, I just cant delete an entry : if I try,
I get "an error occurred while porcessiong this command. Object reference
not set...". To have the entry disappear, I left it and made it not visible
(not very elegant but it works temporarily)
So, I believe there are at least 2 big bugs in this control. How can I avoid
them?
Thanks in advance.
GB
Morten Wennevik - 29 Jan 2006 11:37 GMT
Hi GB,
Can't say what is wrong with MenuStrip1 unless you show us some code.
When you copy the menu you say the first one appears in order, but are you sure this isn't MenuStrip2, so if in fact you instead delete MenuStrip1. What happens then?
> Hi,
>
[quoted text clipped - 26 lines]
>
> GB

Signature
Happy coding!
Morten Wennevik [C# MVP]