Results 1 to 4 of 4

Thread: How To Create User Rights on The Menu

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    67

    How To Create User Rights on The Menu

    Hello Everybody

    Need some help on creating user rights on the menu.

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    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."

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    67

    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

  4. #4
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    midewest u.s.
    Posts
    275

    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
  •  



Click Here to Expand Forum to Full Width