B
Benson
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
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