Hello Everybody
Need some help on creating user rights on the menu.
Printable View
Hello Everybody
Need some help on creating 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
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
A sample of how you could go about it is..
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 luckCode:
If UserRights = "Admin" Then
mnuAdmin.Enabled = True
Else
mnuAdmin.Enabled = False
End if