adxKeyboardShortcut

Add-in Express™ Support Service
That's what is more important than anything else

adxKeyboardShortcut
C# Keyboardshortcut in inbox 
Ronni Marker


Guest


Hi guys,
been trying to tackle the adxKeyboardShortcut without much success as I cant get the event to trigger a simple messagebox when trying to use this.

added the adxKeyboardShortcut to the AddinModule and added (in bold) to the code:

Outlook;

//
// adxKeyboardShortcut1
//
this.adxKeyboardShortcut1.ShortcutText = "Ctrl+SPACE";
this.adxKeyboardShortcut1.SupportedApps =_ AddinExpress.MSO.ADXOfficeHostApp.ohaOutlook;
this.adxKeyboardShortcut1.Action += new_ AddinExpress.MSO.ADXAction_EventHandler(this.adxKeyboardShortcut1_Action);

private void adxKeyboardShortcut1_Action(object sender)
{
System.Windows.Forms.MessageBox.Show(
"You've pressed "
+ (sender as AddinExpress.MSO.ADXKeyboardShortcut).ShortcutText);
}


any who know what i am missing? most likely something trivia, but couldnt really see it directly in documentation code that only is in VB. plus looked in MyOulookAddin1, and when running this app in outlook, then my component works. So presume it is some eventhandler that are missing in the inbox folder or?
Posted 12 Jun, 2007 06:56:14 Top
Ronni Marker


Guest


ahh got it. forgot to set the Handleshortcuts property on the AddinModule. (dont read comments in bold)

Cheers,
Posted 12 Jun, 2007 07:03:02 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Ronni.

No problem. Let me know if you need anything else.


P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 12 Jun, 2007 09:18:32 Top