473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Resetting Right-Click functionality

RLN

RE: Access 2003

I wanted to turn off right clicking on forms so users couldn't go into
design mode and change stuff.
I have a special "programmers' form that, when a password is put in,
enables F11 so I can go modify objects in the container.

Now I cannot even right click in the container.

I tried looping through the forms and resetting the shortcut menu
property to "Yes". This did not work and I still cannot right-click on
my forms or the DB container.

Does anyone have an example of code that would reset this property
across all forms and the container as well?

Here is the code I have so far that does not work correctly:

Dim frm As Form
For Each frm In Forms
Debug.Print frm.Name
frm.ShortcutMenu = True 'allow right clicking on all forms
Next frm

thnx...
*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #1
2 1472
On Fri, 06 Jun 2008 12:33:28 -0500, RLN <no*******@devdex.comwrote:

Couldn't you simply ship an MDE to your users?
-Tom.

>
RE: Access 2003

I wanted to turn off right clicking on forms so users couldn't go into
design mode and change stuff.
I have a special "programmers' form that, when a password is put in,
enables F11 so I can go modify objects in the container.

Now I cannot even right click in the container.

I tried looping through the forms and resetting the shortcut menu
property to "Yes". This did not work and I still cannot right-click on
my forms or the DB container.

Does anyone have an example of code that would reset this property
across all forms and the container as well?

Here is the code I have so far that does not work correctly:

Dim frm As Form
For Each frm In Forms
Debug.Print frm.Name
frm.ShortcutMenu = True 'allow right clicking on all forms
Next frm

thnx...
*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #2
RLN


Yes, I could do an MDE. I was just trying to see if there was a way to
hide the "dangerous menus" form the users, then restore them once the
app had closed.

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: The Plankmeister | last post by:
Hi... I'm getting to grips with custom error handling, and am wondering if it is possible to somehow reset all the content already sent to the browser, and send some new stuff in its place. ...
8
by: riprod | last post by:
Someone in the IIS newsgroup suggest I post this here, so sorry in advance for the cross posting. I have a Win 2003 SP1 with IIS 6 and host about 40 websites, most of them useing ASP/VB with...
1
by: Frantic3d | last post by:
I just started using Access' Template file "Time & Billing Database" Well among other items I need to change the biggest right now is resetting the Client, Employee, Project ID #'s to start at 1. ...
2
by: DeveloperPDX | last post by:
I am creating a page and I need to add a reset button (like you would with HTML forms). Is there any way to do this other than resetting individual controls? Basically I need to page to return to...
3
by: No One | last post by:
This seems to be related to the ViewState error that is now starting to plague ASP.Net apps. When the Application Pool is recycled, the Session seems to be getting reset. When this is done,...
2
by: Randall Arnold | last post by:
I have a CSV processing program that instantiates Excel and performs various operations. I want the ability to reset the main form for running another data set with defaults selected. Right now I...
0
by: Newbie5555 | last post by:
I'm having problem with my current webmaster. Iooking at changing. Current webmaster says he and only he can do the resetting licensing on the controls we use. Is that true? I can't get a stranght...
3
hsriat
by: hsriat | last post by:
I have a grid table in the front end (PHP on server side), and the master admin can sort data in that grid according to his own wish and save that new sorted order. Once the master admin sorts the...
2
by: Vince Morgan | last post by:
Hi all, I have a POST form that also includes some anchors/links. If a user clicks a link, that link remains set so that pressing the submit button later not only sends the appropriate POST value,...
3
by: geraldjr30 | last post by:
hi, i managed to reset the $_GET to $_POST passed from previous page, but for some reason when i type in a in the form it resets back to all. i do not want this to happen... can someone look...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.