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