Enable shortcut keys on outlook form region - outlook

I am creating addin for outlook. I am using outlook form region of vsto as adjoining. The issue is in my outlook form region shortcut keys are not working. I need to work tabs and enter keys on my controls. Any help will be appreciated.

Related

Is TabDefault the only option for placing a group on ribbon?

After years of developing COM add-ins, I am now doing a outlook js add-in. So I am newbie to this enviroment.
I have a couple of questions regarding the ribbon architecture.
From what I have read, I believe the TabDefault is the only option for the ribbon group. I am trying to place my ribbon group at a specific location and emulate the COM add-in. For example, for my Outlook COM add-in I can place my options button that pops up a dialog on the TabMail ribbon before group GroupQuickSteps. Is the Outlook ribbon only limited to TabDefault?
I would like to design my ribbon to have one button on the compose ribbon and one button on the read (pop-out) button. Then I would have two buttons on the main ribbon (TabMail). All buttons would perform different functions. Can I define separate logic for each ribbon/window? The only example I see is that Contoso sample app. Kind of confused about the manifest and limitations. Looks like that example pops up on all windows.
Any help is appreciated.
Thanks,
Tom
Web add-ins don't support ribbon customizations you could do with a COM add-in. But web add-ins provide the ability to create ribbon commands. You can read more about them in the Add-in commands for Outlook article.
Add-in commands are supported for four scenarios:
Reading a message
When the user is reading a message in the reading pane or in the Message tab for a pop-out read form, add-in commands added to the default tab appear on the Home tab.
Composing a message
When the user is composing a message, add-in commands added to the default tab appear on the Message tab.
Creating or viewing an appointment or meeting as the organizer
When creating or viewing an appointment or meeting as the organizer, add-in commands added to the default tab appear on the Meeting, Meeting Occurrence, Meeting Series, or Appointment tabs on pop-out forms. However, if the user selects an item in the calendar but doesn't open the pop-out, the add-in's ribbon group won't be visible in the ribbon.
Viewing a meeting as an attendee
When viewing a meeting as an attendee, add-in commands added to the default tab appear on the Meeting, Meeting Occurrence, or Meeting Series tabs on pop-out forms. However, if a user selects an item in the calendar but doesn't open the pop-out, the add-in's ribbon group won't be visible in the ribbon
Using a module extension
When using a module extension, add-in commands appear on the extension's custom tab.

Outlook becomes white when run Process.Start("Outlook.exe", "/recycle")

I'm developing a VSTO add-in, I need to re-active(open) Outlook when its "MinToTray" is enabled(by the context menu in the tray of Outlook icon).
I use Process.Start("Outlook.exe", "/recycle") to do this. And it works. Except, for the first time when Outlook is re-open, its Title bar, Ribbon area, and Command bar become white, unless I resize the Outlook window.
Image [https://i.stack.imgur.com/VuKOZ.png]
Does anyone know how to fix this? It is very appreciated.
Thanks!
Try to call Application.ActiveExplorer.Activate instead.
Thanks #Dmitry Streblechenko. Application.ActiveExplorer.Activate will not work when Outlook is minimized and hidden (Check on the context menu of the Outlook icon in system tray);
I fixed it by myself. Needs to expand my VSTO panel until Outlook is completely recovered from minimized and hidden state.

Outlook Add-in: Pinnable Taskpane does not refresh view In Outlook

we have implemented the Pinnable Taskpane by following the article below.
https://learn.microsoft.com/en-us/outlook/add-ins/pinnable-taskpane
This works well in Outlook and OWA both.
Issue: We have 4 Ribbon command button for our Outlook add-in in Read view. We activate the Add-In with one of the button, lets say button A. Once the add-in is activated it shows the functionality from button A. We then pin the taskpane and move around the different messages. while navigating through certain special messages, app view changes and shows the data from the message. This is expected behavior. Once this view is loaded, we can not reset to original view by clicking the button A again on the Ribbon. However if we click button B, it eventually opens up another Task pane instance on top of previously pinned one and navigates to functionality B. The only way it can be reset is to unpin and restart the add-in.
This does not happen in OWA and only specific to Outlook. I ran a test on Outlook 2016 build 9126.2282.
Could someone point out if this is a known issue?

Showing the in-mail add-in bar in Outlook

Feel kinda silly for having to ask, but anyway... I seem to be missing the add-in toolbar shown inside of an e-mail which for instance contains the button to watch an address in Bing maps. The entire bar is missing. I tried finding an option to view it, that doesn't seem to exist (so it cannot be disabled either :)). Also tried making my O365 the only Outlook account since I have a corporate account where add-ins are not enabled.
To be clear; it's the bar as shown in this video by Jeremy Thake: https://www.youtube.com/watch?v=XDBMI9OcqBQ, the entire bar is missing in both Office 365 OWA and the desktop client, from multiple PC's. Other add-in stuff does work, like the Boomerang add-in pane in an e-mail. I sent myself some e-mails with addresses in them (including the sample ones) to be sure it should trigger, but nothing happens. What am I missing here?
From the desktop Outlook client, click File -> Info -> Manage Add-ins. It will launch the Manage add-ins page in the Outlook Web Application (or click the gears icon in OWA and choose "Manage add-ins"). Do you see the Bing Maps add-in listed? If not, click the + icon and select "Add from the Office Store" and look for the Bing Maps add-in.

How to access the context menu for an attachment in Outlook "New Message dialog

I have an Outlook VSTO addin. I can successfully modify the context menu for attachments "received" by the user (either in the email message received or in the preview window.) I cannot figure out how to access the context menu for an attachment for a message being "sent"
Anyone know of the idMso for this context menu or another way to get access to it?
Not all context menus can be customized by developers (there is no idMso values published). You can find possible context menus customizations described in the Extending the User Interface in Outlook 2010 article.

Resources