How to position a newly added Add-On in the outlook - c#

I have created a new add-on for Outlook and I created a setup file aslo. while installing my Add-On, The ribbon appearing in the last. I want to position it first. Please help...

You can change the order of custom tabs on a Ribbon by using the Tab Collection Editor
Click here for more details

Related

How to Show Outlook Ribbon on multiple tabs c#

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

Display outlook folder tree in a form (outlook add-in project)

I want to customize the mail moving functionality of outlook. So to do that I am creating a outlook plugin and when user want to move a mail, I will show a windows form via that add-in.
In that windows form I want to display the current folder tree of outlook as in the following image (this image is from mail move functionality : mail --> right mouse click --> move -> to other folder).
Is there a way that I can get similar tree by extending already having outlook UI component
?
I am using outlook 2010.
Regards.
Have a look at Customize the built-in Outlook Select Names dialog (or any other)
It might be what you are looking for.

How to programmatically remove a menu context item in Outlook 2013

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.

Reloading an Excel Addin Programmatically

I have an excel plug in that has a number of features. I have a button on the ribbon titled "configuration settings" that allows the user to select whether or not to allow some options (whether to include a right click menu, or to display some buttons on my ribbon).
The only way that I know to define a right click menu or to design the ribbon is in the start up of the excel addin.
I have a config file that gets checked on load, but should the user change the configuration using my ribbon button, it has no effect until excel is re-opened or the user manually reloads the addin. Is there a way to do this programmatically?
Probably you could have two addins. (Addin1, Addin2)
First addin (Addin1) which doesnt have any ribbons but reads the configuration and then enables another addin (Addin2).
To enable the addins use the following piece of code.
foreach (COMAddIn addin in Application.COMAddIns)
{
if (addin.ProgId.ToLower().Contains("addin2") && addin.Connect != true)
{
addin.Connect = true;
}
}
I don't think you can reload an Add-In from inside the same Add-In.
I tried it on my own - just unloading has worked for me.
But the buttons of a custom ribbon (e.g. named "Ribbon1") can be changed at runtime by accessing its properties via the "Globals" object:
Globals.Ribbons.Ribbon1.myRibbonButton.Visible = false;
Hope it helps,
Jörg

Outlook 2010 Add-In: How to customize "From/To/CC/Subject" pane?

I'm currently working on an Outlook 2010 Add-In with C#. Is there any way to customize the "From/To/CC/Subject" pane in Outlook 2010?
Specifically, I hope to implement the following functionality:
Add a new field below the subject of an email
Add two icons on the right of that area
I need to do that both for email previews and when reading an email in a new window. See this ImageShack pic as an example.
You cannot customize this part of the Outlook user interface - as of my researches I've done for a client who just requested that. Here's my link list (with negative results):
How to customize Email Send button in Outlook?
Add controls to existing ribbon group in Office (VSTO)
Modifying Built-in Ribbon Controls
Add a control / button inside the group - Ribbon Bar
Outlook addin to add a custom "Send" button next to existing Send button in mail compose window
how to place a button next to the send mail (system button)
Can I add a custom “Send” button to Outlook?

Categories