Right Click Shortcut Menu

cuttsy

The Great Pretender
Local time
Today, 13:05
Joined
Jun 9, 2004
Messages
164
I have used the code from the repository to hide all of my toolbars. It works fine but for one problem.

Does anyone know how to enable the right mouse click menu when this code has been used?
 
Set form property shortcut menu to NO.

If that doesn't work than paste the code you put in the database to hide the toolbar.

Michael
 
Using the CommandBars(I).Enabled = False function I posted in the code repository will not allow the user to right click in a form.

Why would you want to allow them access to the "design" option to your objects if they are able to right click in your db? Most developers remove that option.

If you really want to use the right click then you will have to hide your toolbars using the DoCmd.ShowToolbar "Menu Bar", acToolbarNo method for each toolbar.

Then you could use the ShortcutMenu property with something like this to disable/enable the right click option to toggle it on or off
Code:
If ShortcutMenu = True Then
    ShortcutMenu = False
Else
    ShortcutMenu = True
End If
 

Users who are viewing this thread

Back
Top Bottom