! Prevent Right Click on Form !

W

Wembly

Hi,

What is the best way to prevent a user from right clicking
on a form?

I've identified the following:
1. Security.
2. Trapping the right mouse click event.

Is there an item in the properties of a form to do this?

Thanks

Wembly
 
D

Dirk Goldgar

Wembly said:
Hi,

What is the best way to prevent a user from right clicking
on a form?

Break his middle finger? said:
I've identified the following:
1. Security.
2. Trapping the right mouse click event.

Is there an item in the properties of a form to do this?

Have you tried setting the form's Shortcut Menu property (on the Other
tab of the form's property sheet) to No?
 
W

Wembly

-----Original Message-----




Have you tried setting the form's Shortcut Menu property (on the Other
tab of the form's property sheet) to No?

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


.

Oh, I see. Silly me. I'm always doing things the hard way.

Another potentially silly question. How does one remove
the menu and the formview bars?
 
D

Dirk Goldgar

Wembly said:
Another potentially silly question. How does one remove
the menu and the formview bars?

I don't think you can remove the menu completely, but you can remove
most of it. In Tools -> Startup..., uncheck the options "Allow Full
Menus" and "Allow Built-in Toolbars". You can also uncheck "Allow
Default Shortcut Menus", if you don't want *any* of your forms to have
default right-click menus.
 
V

Van T. Dinh

If you want to remove the MenuBar completely for the Form,
set the Form's MenuBar Property to:

= -1

(including the equal sign). Not sure of the logic but it
does work. It will leave a blank grey bar, however.
Thus, it is probably more useful to leave the full Menubar
or the condensed MenuBar in place if you don't have a
custom MenuBar.

Cheers
Van
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top