943,929 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2148
  • VB.NET RSS
Dec 1st, 2008
0

MEnu Item Disable

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asmit1987 is offline Offline
22 posts
since Sep 2008
Dec 1st, 2008
0

Re: MEnu Item Disable

did you try

menuitem.enabled = false

in place of the menuitem you write the name of the menu item in your program.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Dell XPS is offline Offline
85 posts
since Sep 2007
Dec 2nd, 2008
0

Re: MEnu Item Disable

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asmit1987 is offline Offline
22 posts
since Sep 2008
Dec 2nd, 2008
0

Re: MEnu Item Disable

My.Forms.form1.menuitem1.Enabled = False
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Dell XPS is offline Offline
85 posts
since Sep 2007
Dec 5th, 2008
0

Re: MEnu Item Disable

Hi Have you Tried the code below? If not try it.
Form2.Button5.Enabled = False
Reputation Points: 10
Solved Threads: 1
Newbie Poster
K-Dave is offline Offline
18 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: How can I generate report from data grid??
Next Thread in VB.NET Forum Timeline: read a file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC