|
-
Dec 9th, 2004, 03:08 AM
#1
Thread Starter
Lively Member
How To Create User Rights on The Menu
Hello Everybody
Need some help on creating user rights on the menu.
-
Dec 9th, 2004, 04:10 AM
#2
Re: How To Create User Rights on The Menu
Well i' not if that's what your asking but in my company we disable certain menuitem/contextmenus/buttons based on the user name. I have a class that browse all buttons/menuitems during form loa and saves them in a database so that everytime i add a new button the next time i run the app all the admins have automically access to it, everyone else doesn't have.
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Dec 9th, 2004, 05:34 AM
#3
Thread Starter
Lively Member
Re: How To Create User Rights on The Menu
hi asgorath,
thanks for viewing, ur my saviour, can you show me just a little view of ur class on creating user right on the menu.
thank you very much
-
Dec 9th, 2004, 08:40 AM
#4
Hyperactive Member
Re: How To Create User Rights on The Menu
A sample of how you could go about it is..
Code:
If UserRights = "Admin" Then
mnuAdmin.Enabled = True
Else
mnuAdmin.Enabled = False
End if
You could do mnuAdmin.Visible = True/False as well if you don't want the user to even see them. I believe this is what you are looking for? Good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|