![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
You can't disable it, but you can cancel this action before it is committed.
If you trap the BeforeItemCopy/Paste events for the Explorer object, you can set the Cancel argument to true. However, you can't do the same for a folder move operation without trapping multiple Folders.FolderRemove events - and even then you can't cancel it (although you can probably undo it in code). There may be some other trickery you can do, but I doubt there's a clean approach to solving this. -- Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.) Try Picture Attachments Wizard for Outlook: http://www.collaborativeinnovations.ca Blog: http://blogs.officezealot.com/legault/ "Nabil" wrote: Hi, I'm currently developing an Outlook 2007 addin using VSTO. I don't want users to be able to drag items/folders pressing the CTRL key at the same time. The default action when users drag items in the same store is to move the items, if the user presses CTRL at the same time then the action changes to COPY which I don't want. Does anyone know how to disable this? I've already had a look at disabling shortcut keys but didn't have any effect. http://technet.microsoft.com/en-us/l.../cc179143.aspx Thanks in advance Nabil |
#2
|
|||
|
|||
![]()
Thank you Eric,
I had already tried BeforeItemCopy before which doesn't fire when copying items with the control key. I thought I have hit another dead end but then I read the rest of your post and I tried BeforeItemPaste which I hadn't considered before but works fantastically. BeforeItemPaste fires consistently when you copy items with the Control Key down so that is what I'm going to use. I'll hack my way round the folder problem. Once again, thank you very much for your help! Nabil |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to enable/disable IAccessible control such as button? | ryotyankou via OfficeKB.com | Add-ins for Outlook | 0 | June 10th 09 04:09 AM |
How to disable Parental control to get Live Updates from Norton | PUZZLED | Outlook - General Queries | 2 | December 19th 08 07:28 AM |
Disable button from addins Outlook 2007 | Andrey_R | Add-ins for Outlook | 2 | April 2nd 08 07:12 PM |
Outlook 2007 Appointment built-in control id for Send button | GR | Add-ins for Outlook | 0 | May 22nd 07 09:26 PM |
Outlook XP: Folders do not have focus after switching w/ Ctrl+Y | David Winter | Outlook - General Queries | 1 | January 8th 07 11:20 AM |