How to disable copy/cut/paste from in Visio

C

CS

Hi,
I am using the Drawing Control in a VB container.
I want to disable copy/cut/paste (and many other commands) in my program.
I am able to remove the menu's using the UIObject (using the sample in the
SDK Docs).
However the user can still use the Ctrl + C, or Ctrl + V to run the commands.
I also tried to delete the accelerators for the commands above, with the
same result.

There is a sample in the SDK Doc which shows how to remove the accelerator
for running VB Macros - constant visCmdToolsRunVBE.
Strange thing, when I run it it realy removes the command (including when
called with Alt + F8). But the same code has no effect when I try it with
visCmdUFEditCopy instead.

How can I accomplish this?

Thank You.
 

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