Disable control CTRL button when dragging items/folders - Outlook

Status
Not open for further replies.
N

Nabil

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/library/cc179143.aspx

Thanks in advance

Nabil
 
E

EricLegault

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 - , MCDBA, MCTS (SharePoint programming, etc.)

"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/library/cc179143.aspx

> Thanks in advance

> Nabil
 
N

Nabil

RE: Disable control CTRL button when dragging items/folders - Outl

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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Disable Contact Card Results when using "Search People" in Outlook Ribbon Using Outlook 4
U Disable "Always ask before opening" Dialog Using Outlook 3
J How do I disable advertising in Outlook 2019? Using Outlook 13
GregS Outlook 2016 Can I disable the Outlook Outbox? Using Outlook 2
R Disable conversation thread from replying of recipients in the same subject. Please help Using Outlook 0
N Disable Auto Read Receipts sent after using Advanced Find Using Outlook 4
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
N How to disable shortcuts for Pilcrow in Outlook Using Outlook 0
M Making Subject field writable (disable Read Only) Outlook VBA and Custom Forms 2
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
P Disable Spam Notifications & Sounds Using Outlook 3
O Outlook Web Access - how to disable spam filter Using Outlook 6
Diane Poremsky Disable Protected View for Outlook Attachments New Slipstick.com Articles 0
E Outlook 2010 disable date auto-complete Using Outlook 2
Diane Poremsky Disable Outlook Add-ins (Apps) New Slipstick.com Articles 0
J Using VBA to disable alerts / warnings Using Outlook 2
Diane Poremsky Disable the Unsafe Hyperlink Warning when Opening Attachments New Slipstick.com Articles 0
N How to disable user defined fields in BCM forms Using Outlook 2
Diane Poremsky Disable Live Preview in Outlook and Word New Slipstick.com Articles 0
D Preventing users to disable an Outlook Add-in Using Outlook.com accounts in Outlook 5
F Disable "Find related messages" Using Outlook 1
davecazz Anyway to disable the peek rollovers? Using Outlook 1
L Reading Pane - COMPLETELY DISABLE? Using Outlook 10
M trying to disable junk email filter. completely. Using Outlook 4
Z OL2007 - is there a way to disable the "feature" that cripples mails that are in the "junk" folder? Using Outlook 37
B How do I REALLY disable Outlook Junk E-mail sorting in OL2010 and/or 2013? Using Outlook 1
R Outlook Cache Mode Terminalserver disable through Registry Using Outlook 1
S Cannot disable OWA light Exchange Server Administration 5
A How to disable the pop-up “Reponses to this meeting will not be tallied." Using Outlook 0
D Show this folder as an e-mail Address Book is enabled but I want to disable Using Outlook 2
Rupert Dragwater how to disable billingual dictionary in outlook 2010 Using Outlook 9
J How to disable syncing folder views/layouts Using Outlook 5
A Disable hotmail from Outlook email account Using Outlook 1
R Disable request to share a calendar Using Outlook 1
T Disable the To-Do Bar permanently Using Outlook 15
J Outlook's auto time zone update for meeting requestsHow to REMOVE or DISABLE? Using Outlook 1
D Disable Junk Email in the Registry? Using Outlook 8
A How to disable bcc option in GAL - Address Book - Exchange 2007 Exchange Server Administration 4
P disable image compression Using Outlook 5
J Disable outlook 2010 no-subject warning Using Outlook 4
E Disable outlook 2010 no-subject warning Using Outlook 9
C Disable printing Outlook VBA and Custom Forms 1
A disable a menu in active inspector Outlook VBA and Custom Forms 1
D Disable Junk E-mail Filter in Outlook 2007 Using Outlook 13
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
A how to disable spell checker Outlook VBA and Custom Forms 4
P Disable Instant Search in Outlook 2007 Outlook VBA and Custom Forms 9
S how to disable security message in save attachments macro "A programis trying to access e-mail addre Outlook VBA and Custom Forms 5

Similar threads

Top