Disable copy to clipboard

fliflo

Registered User.
Local time
Today, 08:04
Joined
Aug 18, 2005
Messages
11
HI to all:

How can I disable in a form the copy to clipboard when I click the right click menu?

I have disabled the ctrl+C with a macro but I have not find how to disable the copy to clipboard in the right click menu.

Any Ideas?
 
You users should not be allowed to right click any of your objects in your application. You need to turn off the Shortcut Menu property of your application in the StartUp options

Check this out for a few tricks... hide all Access tool bars and menu bars
 
hello friend , how are you. actually i want to know that how i can clear clipboard when i close the form. because i got stuck here and i don't know what to do now?? whenever i am trying to close my database its says

"you copied a large amount of data onto the clipboard. ...Do you want to save this data on the clipboard?"


and its frustrating what to do now???
 
HI to all:

How can I disable in a form the copy to clipboard when I click the right click menu?

...actually i want to know that how i can clear clipboard when i close the form...

Sorry, but which is it that you want? You can't expect an appropriate answer without knowing, yourself, what your problem is!

Do you want the ability to copy, while the Form is open, and dump whatever is n the Clipboard, when exiting the Form, or simply not allow copying?

If you place this in a Standard Module:

Code:
Declare Function EmptyClipboard Lib "User32" () As Long
Declare Function CloseClipboard Lib "User32" () As Long
Declare Function OpenClipboard Lib "User32" (ByVal hWnd As Long) As Long


Function ClearClipboard()

  If OpenClipboard(0&) <> 0 Then

   Call EmptyClipboard
  
   Call CloseClipboard

  End If

End Function
and use this in your Form:

Code:
Private Sub Form_Close()
  Call ClearClipboard
End Sub
it’ll dump anything in the Clipboard as the Form Closes.


Linq ;0)>
 
Last edited:

Users who are viewing this thread

Back
Top Bottom