I have successfully added a custom button in the contextMenu of a calendar item in the calendar view:
my question is, is it possible to create the same button also in a contextMenu on a To-Do-List-item in Outlook? (because calendar items are listed there too)
(or a workaround for it?)
so when the user right-clicks an To-Do-List-item, a contextmenu should appear with a custom button, and if the user clicks on it, an event should be triggered with the object of the item that was right-clicked on
many thanks!
(Im using a C# Addin in Outlook 2019 with WPF)
Related
I developed an outlook add-in which manages the meeting request response with a custom ribbon button. But this button in the ribbon. There is a standard meeting request menu in the meeting request body. I would like to hide this menu. But I cannot access this menu. I can access the selected item in the compact view with the code in the ThisAddin.cs
I have tried to access the active explorer. there are some of the controls accessible like command bars. But I don't know what this control means.
There buttons cannot be hidden. You can simulate clicks on them using Accessibility API, but that's about it.
I use Visual Studio 2010 and program in C#.
I realized a custom checkbox and a custom button in a panel of a Windows Form.
I wish to click my button and verify all the elements checked into the custom checkbox but I don't know how I can do.
Can you help me please?
I am developing an Outlook plugin. I have added a ribbon with the ribbon type set to
this.RibbonType = "Microsoft.Outlook.Explorer";
and ControlId is set to TabMail. By default this ribbon shows on the Home tab in Outlook. But when I open an email in a separate window, when I switch to a different tab or when I view attachments, the ribbon does not appear. I also want to show this ribbon on the Message tab and the Attachments tab.
I have explored ways and got answers that refer to creating two ribbons, but that is not a proper solution.
I also followed this link, but with no luck.
The other solution i explored is to call event tabControl_SelectedIndexChanged on tabs to identify the current tab and then setting ribbon properties(ribbontype and ribbon control) run time.
How to do that for ribbon (Visual Designer)? Or I have to convert that into ribbon (xml)? And where to trigger that event?
Any help will be appreciated.
You should create a new Ribbon with ribbonType Microsoft.Outlook.Mail.Read and your controlId TabReadMessage
You need to choose appropriate values for the RibbonType property:
you can select such
List item
Microsoft.Outlook.Mail.Compose or
Microsoft.Outlook.Mail.Read
i am developing an Outlook AddIn for Outlook 2010 with VS 2010.
When the user opens some Mails, and he changes the focus from one mailitem to another: Is there any event which can give me the currently displayed/focused mailitem?
It looks like you are interested in the SelectionChange event of the Explorer class. It is fired when the user selects a different or additional Microsoft Outlook item programmatically or by interacting with the user interface.
If you switch between inspectors, you need to handle the Activate event of the Inspector class. It is fired when an inspector becomes the active window, either as a result of user action or through program code.
I have an Outlook add in that was written with Outlook 2010 in mind but I am updating to handle Outlook 2013 correctly. As part of the add in I have included a number of context menu buttons using the IRibbon method.
At this point these new menu items work correctly, however I wish to remove one of the default Outlook contxt menu buttons with right clicking on a mail item or document in a specific folder.
I have tried declaring a GetVisible event for the button in the Ribbon XML but this does not get fired like the GetVisibile calls I have for my new custom added buttons.
If anyone has any hints, tips or experience with disabling one of the default Outlook 2013 context menu options they would be much appreciated.
Having looked into this further, the "Delete" option I was looking to remove was a new addition on 2013, having originally thought the add in I was working with had removed it in 2010.
It shares the same behaviour as the "Delete" button in the main top ribbon and appears to be a menu item that cannot be removed on an item type basis, but you can suppress the behaviour of the button within the add in.