MEnu Item Disable

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

Join Date: Sep 2008
Posts: 22
Reputation: asmit1987 is an unknown quantity at this point 
Solved Threads: 0
asmit1987 asmit1987 is offline Offline
Newbie Poster

MEnu Item Disable

 
0
  #1
Dec 1st, 2008
Hello People ,
I am creating a project in VB.net . now the problem is there are several forms and i start with the login form my login consist of three major fields username , password , type now the type here is the type of user accessing the application types can be a manager or a data entry operator now the thing is that i can open the my MDI form through the login form and it has several menu items.
Now when i click OK on the login form i need only certain menu items to be enabled as in if the user type is data entry operator then the Menu Item transaction or the reports should not be enabled as he can not use them. So plz help me with a necessary code to perform it..
thankx
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 85
Reputation: Dell XPS is an unknown quantity at this point 
Solved Threads: 0
Dell XPS Dell XPS is offline Offline
Junior Poster in Training

Re: MEnu Item Disable

 
0
  #2
Dec 1st, 2008
did you try

menuitem.enabled = false

in place of the menuitem you write the name of the menu item in your program.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 22
Reputation: asmit1987 is an unknown quantity at this point 
Solved Threads: 0
asmit1987 asmit1987 is offline Offline
Newbie Poster

Re: MEnu Item Disable

 
0
  #3
Dec 2nd, 2008
I would like to tell u that i tried this also i wantto tell u that this action of enabling or disabling of menu is to be done once i click ok on the login form well the menu which are to be disabled or enabled are on other form and not on the same form so plz help me to solve this error by keeping this in mind .... thank U
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 85
Reputation: Dell XPS is an unknown quantity at this point 
Solved Threads: 0
Dell XPS Dell XPS is offline Offline
Junior Poster in Training

Re: MEnu Item Disable

 
0
  #4
Dec 2nd, 2008
My.Forms.form1.menuitem1.Enabled = False
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 16
Reputation: K-Dave is an unknown quantity at this point 
Solved Threads: 1
K-Dave K-Dave is offline Offline
Newbie Poster

Re: MEnu Item Disable

 
0
  #5
Dec 5th, 2008
Hi Have you Tried the code below? If not try it.
Form2.Button5.Enabled = False
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC