DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   Enable Menu items (http://www.daniweb.com/forums/thread106585.html)

dezymut Jan 28th, 2008 7:22 am
Enable Menu items
 
Can anyone help. I have written my application in visual basic 2005 and access database. my problem is i want users to have different menu items depending on their user profiles. How do I enable menu items like administration for administrator and disable it or hide it completetly for general users.

Regards

Dez

nowitzk Jan 28th, 2008 8:18 am
Re: Enable Menu items
 
You can have the program retrieve the user type (admin, etc.) and have an 'If...then' statement that makes the menu items disappear (visible=false) or disable it (enabled=false). To access these properties, just click on the menu item and go to properties.

dezymut Jan 28th, 2008 8:28 am
Re: Enable Menu items
 
Thanks, The other thing can u enable the menu item and disable some subitems within that menu.

Jx_Man Jan 28th, 2008 11:44 am
Re: Enable Menu items
 
FormName.MenuItemName.enable = false


All times are GMT -4. The time now is 9:59 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC