PC Review


Reply
Thread Tools Rate Thread

Clear MainMenu items

 
 
Benson
Guest
Posts: n/a
 
      5th Feb 2007
I have a MainMenu (MenuStrip) which will be loaded (dynamic by codes) after
the program Login form. The first time run is ok. But when I close the
MainMenu and go back to Login form, and then go to MainMenu again, the menu
items didn't clear by MainMenu.Items.Clear().
That is:
1. Login -> MainMenu.items.clear() -> MainMenu (dynamic add menu items by
code) => OK
2. Login -> MainMenu.items.clear() -> MainMenu (dynamic add menu items by
code) -> Login ->
MainMenu.items.clear() -> MainMenu (dynamic add menu items by code) =>
menu items are double loaded???

Any hints?
Benson
VB2005


 
Reply With Quote
 
 
 
 
ClayB
Guest
Posts: n/a
 
      5th Feb 2007
You might try placing a stop in the code where you add the menu items
just to check whether this code is being executed twice the second
time around for some reason.

====================
Clay Burch
Syncfusion, Inc.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clear search items in the Find field in sent items in outlo JillyB Microsoft Outlook Discussion 1 2nd Jun 2009 08:06 PM
How to clear search items in the Find field in sent items in outlo JillyB Microsoft Outlook Discussion 0 2nd Jun 2009 11:50 AM
Adding MainMenu items to a ContextMenu Hari Microsoft Dot NET Compact Framework 0 21st Sep 2006 10:01 AM
What do you do when ListView.Items.Clear() doesn't clear?? StriderBob Microsoft VB .NET 20 6th Sep 2004 04:54 PM
clear sent items using cmd Henry Microsoft Windows 2000 CMD Promt 1 1st Aug 2003 02:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 PM.