Enable Menu items

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 2
Reputation: dezymut is an unknown quantity at this point 
Solved Threads: 0
dezymut dezymut is offline Offline
Newbie Poster

Enable Menu items

 
0
  #1
Jan 28th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 14
Reputation: nowitzk is an unknown quantity at this point 
Solved Threads: 1
nowitzk nowitzk is offline Offline
Newbie Poster

Re: Enable Menu items

 
0
  #2
Jan 28th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2
Reputation: dezymut is an unknown quantity at this point 
Solved Threads: 0
dezymut dezymut is offline Offline
Newbie Poster

Re: Enable Menu items

 
0
  #3
Jan 28th, 2008
Thanks, The other thing can u enable the menu item and disable some subitems within that menu.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Enable Menu items

 
0
  #4
Jan 28th, 2008
FormName.MenuItemName.enable = false
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC