S
Sanjay
Hello,
I am trying to assign a shortcut key to a command button created in
a VSTO outlook plugin. I must be missing something but nothing seems to
work. Here is my code:
MSO.CommandBarButton cmdButton;
cmdButton=
(MSO.CommandBarButton)oCommandBar.Controls.Add(MSO.MsoControlType.msoControlButton,
_missing, _missing, _missing, true);
cmdButton.Caption = "Banking";
cmdButton.ShortcutText = "Z";
cmdButton.OnAction = "!<MyVSTOPlugin>";
cmdButton.Click += new
_CommandBarButtonEvents_ClickEventHandler(cmdButton_Click);
What am I missing? My understanding is that "Alt+Z" should fire the
cmdButton.Click event.
Sanjay
I am trying to assign a shortcut key to a command button created in
a VSTO outlook plugin. I must be missing something but nothing seems to
work. Here is my code:
MSO.CommandBarButton cmdButton;
cmdButton=
(MSO.CommandBarButton)oCommandBar.Controls.Add(MSO.MsoControlType.msoControlButton,
_missing, _missing, _missing, true);
cmdButton.Caption = "Banking";
cmdButton.ShortcutText = "Z";
cmdButton.OnAction = "!<MyVSTOPlugin>";
cmdButton.Click += new
_CommandBarButtonEvents_ClickEventHandler(cmdButton_Click);
What am I missing? My understanding is that "Alt+Z" should fire the
cmdButton.Click event.
Sanjay