Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menustrip problem

Status
Not open for further replies.

aspvbnetnerd

Programmer
May 16, 2006
278
SE
I just trying to learn C#.
I am using a "menustrip" menu.
On the load event I want to hide some menu if this is possible.
When then the user loggs in to the system the menus are being displayed.


if it is possible who should do it?

George
 
If you can't set the Visible property on the menu item, then simply remove it from the menu, or remove that menu from the stip. It will still exist, it just won't be displayed in the menu.
 
use this

int he form onload event

menuname.Visible = false;

menuname correspond to the name you set for the menu in the properties window
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top