Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / January 2006

Tip: Looking for answers? Try searching our database.

MenuStrip not working properly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GB - 28 Jan 2006 10:50 GMT
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]


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.