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

Recommended Answers

All 3 Replies

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.

Thanks, The other thing can u enable the menu item and disable some subitems within that menu.

FormName.MenuItemName.enable = false

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.