Results 1 to 8 of 8
  1. #1
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Disable right click (XP)

    I may be mssing the point here, but does
    Unticking "Allow Default Shortcut menus" in Tools..Startup do what you want?

    Using Access2000 it seems to remove all right click options.
    Regards
    John



  2. #2
    Lounger
    Join Date
    Oct 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disable right click (XP)

    <P ID="edit" class=small>(Edited by charlotte on 19-Dec-02 22:11. to activate link)</P>OK I understand Hiding toolbars. Less good on enabled property. Using:

    Private Sub Form_Load()
    DoCmd.ShowToolbar "Form View", acToolbarNo
    DoCmd.ShowToolbar "Formatting (Form/Report)", acToolbarNo
    End Sub


    Got the following from MSDN
    http://msdn.microsoft.com/library/default....commandbars.asp



    Sub AllowCommandBarCustomization(blnAllowEnabled As Boolean)

    CommandBars("Toolbar List").Enabled = False

    ' This procedure allows or prevents access to the command bars
    ' Customize dialog box according to the value of the blnAllowEnabled
    ' argument.
    CommandBars("Tools").Controls("Customize...").Enab led = False

    End Sub


    Indifferent about what it is doing for me. Not sure I have it implemented correctly.

    Q:How to disable right click b/c people can still get to the Customize dialog box by right clicking on the title bar of the main form that comes up after my splash screen.

    Any direction or links.

    User level security is overkill b/c everything is linked back to Oracle production db already, just need to shut down front end.

    TIA.

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Disable right click (XP)

    You can set the properties of each individual custom toolbar from the toolbar properties dialog to not allow customizing. If you then turn off the standard toolbars and only display your custom toolbars, the user won't be able to change them. We do this as a matter of course in our apps.
    Charlotte

  4. #4
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Disable right click (XP)

    >>If you then turn off the standard toolbars and only display your custom toolbars, the user won't be able to change them.<<

    Charlotte,

    Do you have some sort of bypass built in so the developer has full access to all toolbars, etc.?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Disable right click (XP)

    We use Access security on all our databases at work. Only the developers group has the ability to change the toolbars because we're the only ones who can get to the standard toolbars. From there, we can right click, choose "customize", and change the properties of a particular toolbar to allow us to edit that toolbar.
    Charlotte

  6. #6
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Disable right click (XP)

    Charlotte,

    What I meant was, is there a way for the developer to bypass the custom toolbars, rather than edit them? For example, having the Design Mode icon on the toolbar is helpful when developing, but it may not be on the custom toolbar. Similarly, you may have done other things; like one of the other suggestions in this thread to turn-off "Allow Default Shortcut Menus", which effectively disables the Right Click.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  7. #7
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Disable right click (XP)

    I'm not sure I understand the question, but I customarily use a command line argument when I'm not using Access security and then test for the command line argument in the startup code of the application. If the argument exists and meets the test, then I suppress the code lines that would otherwise turn off default menus etc. Since menubars and shortcut menus are disabled/enabled at the object level, the only way I can see to toggle it in a similar fashion to the overall menubars would be to either use custom class objects and bind the forms to them or insert code into each form/subform to test for that command line argument on open and set the properties accordingly.
    Charlotte

  8. #8
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Disable right click (XP)

    Charlotte,

    That pretty much answered my question. Thanks.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •