Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable CTRL + C

Status
Not open for further replies.

rsbutterfly16

IS-IT--Management
Apr 19, 2007
53
US
hi guys i have a form in access, is there any way to disable the ctrl+ C feature? i already modified it so the tool bar doesn't come out but still the user can press the ctr+C and copy.
 
You could set the enable property to no... then you couldn't copy from the control because you couldn't select it.
 
thanks! can you please be a little more specific of how to do that?
 
In the form design view, select the control you don't want anyone to be able to copy, right click it and select properties. Find the enable property in the list and change it from yes to no.
 
i have over a 30 controls in the form , is there a way to make the whole form enable property to no?
 
No, but you could select all the controls that you want to affect all at once and then right click one of them etc. and you can modify the properites all at once.

The catch here is that you probably can't select the labels as when you do a multiselect like that, it only shows you the properties common to all the controls.
 
ok i did that , but now but whole form looks gray is there any way to make the controls not enable but not gray also?
 
It's one of format properties...

I usually play with it until I remember as I rarely do this...

Try background color, make sure the backgrounds style is not transparent.
 
Thanks what i did was put the enable to no and lock property to yes, and everythig is the same color and you can't copy ..


Thanks again!
 
and you can't copy
Really ?
What about a screenshot program coupled to an OCR tool ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
OCR : Optical Character Recognition

Often delivered with a scanner.

My post was just to warn you that anything displayed on the screen may be copied ...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
And thus, your solution posted 13 Jul 07 16:14 is illusory.
 
And while your form is locked up all nice and tidy, except for the aforementioned workaround by PHV, basically nothing can be done with your form! You can't edit data or even enter new data unless the controls are unlocked! If you don't mind preventing copying throughout your entire database, the obvious answer, as you originally suggested, is to disable <Ctrl> + <C> which can be done using the AutoKeys Macro[/]! If you don't already have this macro, goto Macros - New, under "MacroName" enter ^C then under Action enter Beep. Exit and when asked to save and name the macro name it AutoKeys. Now anytime the <Ctrl> + <C> combination is hit the PC will beep! Or instead of beeping, you could, under Action, Select Msgbox and then enter something like "Copying is an Indictable Offence!"

BTW, the macro name MUST be AutoKeys[/]

Good Luck!

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
An Autokeys macro will work fine...

The name has to be Autokeys

I only posted to clarify the potential misunderstanding from Missinglinq's botched TGML tags.

Also noteworthy is that it will keep ctrl+C from working anywhere in the database.
 
Thanks for the assist, lameid! Too many grandkids running around the house yelling! I spotted it, but, of course, you can't edit your posts here!

Linq

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
How are ya lameid . . .

The following will work to disable Ctrl+C (for the entire form and you can unlock and revert back to your origional colors):
[ol][li]In form design view set the forms [blue]Key Preview[/blue] event to [blue]Yes[/blue].[/li]
[li]Next . . . in the forms [blue]On Key Down[/blue] event, copy/paste the following line:
Code:
[blue]   If Shift = 2 And KeyCode = 67 Then KeyCode = 0[/blue]
[/li][/ol]
[blue]Thats it! . . .[/blue] Do your testing . . .


Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Easier still!

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Thanks!!! that's exactly what i was looking for, i knew there had to be a better way, if there is not too much trouble is there an easy way to also disable the printscreen key? i was trying to look for the keycode for printsceen but i can't make it work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top