PC Review


Reply
Thread Tools Rate Thread

! Prevent Right Click on Form !

 
 
Wembly
Guest
Posts: n/a
 
      11th Nov 2003
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
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      11th Nov 2003
"Wembly" <(E-Mail Removed)> wrote in message
news:051501c3a7df$49452640$(E-Mail Removed)
> Hi,
>
> What is the best way to prevent a user from right clicking
> on a form?


Break his middle finger? <no, just kidding>

> 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?

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

(please reply to the newsgroup)


 
Reply With Quote
 
Wembly
Guest
Posts: n/a
 
      11th Nov 2003

>-----Original Message-----
>"Wembly" <(E-Mail Removed)> wrote in

message
>news:051501c3a7df$49452640$(E-Mail Removed)
>> Hi,
>>
>> What is the best way to prevent a user from right

clicking
>> on a form?

>
>Break his middle finger? <no, just kidding>
>
>> 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?
>
>--
>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?
 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      11th Nov 2003
"Wembly" <(E-Mail Removed)> wrote in message
news:04b501c3a7ee$f8075130$(E-Mail Removed)
>
> 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.

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

(please reply to the newsgroup)


 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      11th Nov 2003
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


>-----Original Message-----
>"Wembly" <(E-Mail Removed)> wrote in

message
>news:04b501c3a7ee$f8075130$(E-Mail Removed)
>
>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.
>
>--
>Dirk Goldgar, MS Access MVP
>www.datagnostics.com
>
>(please reply to the newsgroup)
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent Right Click Menu Sandy Microsoft Excel Programming 3 13th Jun 2008 07:42 PM
possible to prevent select all on double click? PJ6 Microsoft ASP .NET 4 19th Sep 2007 09:32 PM
How to prevent ComboBox from dropping down on click Matthias Menningen via .NET 247 Microsoft Dot NET Framework Forms 1 1st Jun 2005 05:43 PM
Prevent double click Anders K. Jacobsen [DK] Microsoft ASP .NET 3 14th Mar 2005 08:32 PM
How can i prevent a model form from closing on click of ok button which is of model =?Utf-8?B?YWpheQ==?= Microsoft Dot NET 0 31st May 2004 11:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:07 PM.