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

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?

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

How to hide / disable / capture click event of outlook mail send button?

Is there an easy way to disable , hide and capture the event of click of outlook mail send button ? The solution has to be compatible with outlook 2007 and 2010 versions. Code examples will be appreciated.
Thanks.
You can handle the Send event of the MailItem class which is fired when the user selects the Send action for an item. Also you may find the ItemSend event of the Application class helpful. It is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem, is used in a program.
To disable or hide the button you may consider using a form region which can override the whole inspector region leaving the ribbon control intact (the Replace-all region type). See Creating Outlook Form Regions for more information. Also you may consider using Advanced Outlook view and form regions.

create a outlook add-in to popup an input text field form for user info

I would like to develop an Outlook 2013 add-in that can be clicked and then comes up with a form that asks for user name, phone number etc.
After all the information entered that data can be appended to the end of the mail content as the signature.
I really don't know how to call the form with input text field when clicking the add-in.
Could you give me any ideas?
You may treat your VSTO based add-in as a regular .Net application. For example, in the Ribbon's button Click event handler you can create a new Windows Form instance and display it for users for gathering the required information. In the same way like you do this in WinForms applications.
You may find the Outlook Solutions section in MSDN helpful.

Add a form in outlook mail

I want to add a form with a submit button in it in an outlook mail which I could send to a group. Once user clicks on submit button, I want data in the form to be saved in my database. Any idea how to do?
It looks like you need to develop an Outlook add-in with a form region where you can place all your custom controls for dealing with a Db. See Walkthrough: Creating Your First Application-Level Add-in for Outlook to get started quickly. The Creating Outlook Form Regions section in MSDN provides all the required information about form regions.
You can repurpose button controls on the ribbon in Outlook. See Temporarily Repurpose Commands on the Office Fluent Ribbon. But the Send button is not located on the ribbon in Outlook inspectors. You need to handle the Send event of Outlook items instead.
Also you may consider handling the ItemSend event of the Application class. It is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem, is used in a program.

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.

Categories