Outlook Addin - Hide Help on Hover - c#

I've created a custom add in for Outlook 2010. When I hover over the button, there's a help section with a cog image that says Press F1 for Add-in Help. I would like to remove this so it's not visible when the user hovers over the button but can't find where/how to do so.

The Office extensibility model doesn't provide anything for that. You can try to use Windows API functions to get the job done.

Related

Visual Studio 2013 Add custom toolbar Button

Hey all I have been searching Google for a while now trying to find anything on how to go about setting up you're own button on the VS toolbar.
What I am talking about is this:
And when I click on that button I would like to be able to execute some C# code.
As an example, say I had the word "HELLO" highlighted and I pushed on that button on the toolbar and I wrote some code behind it that, when pressed, have whatever is highlighted turn bold and change color from normal BLACK to .
I was originally thinking that it was called Visual Studio Extensibility Tools but that doesn't seem to be what I am looking for here - it seemed more as a Nuget plugin type of thing?
I'm looking for more like what you can do with the Office suite of products within VS addins - As in make a button for Outlooks toolbar, etc..
The only remotely close thing I could find so far would be this.
If anyone has done this before or at least know what to search for then please let me know!
You were on the right track with Visual Studio Extensiblilty tools.
There are several steps.
Create the Toolbar and add the button.
Create the event handler that runs when the button is clicked.
Determine what document has focus (c# doc, xml doc, vb doc, etc.)
Determine what is selected in the document.
Change the code formatting
Start with an overview of the Extensions SDK.
Here's how to create a toolbar with the VS extensions.
Creating a Toolbar for the IDE

Outlook 2010 VSTO AddIn tab customization not showing [duplicate]

I've got a minimal VSTO Addin for Outlook 2010 with a ribbon. My only goal is to display a ribbon (created via designer) with no functionality. From what little I can tell from MSDN ribbons should just automatically be displayed by default, perhaps with tweaking ControlIdType/CustomId properties for tabs.
Alas, tweaking these properties does nothing -- Outlook loads and displays no tab. A simple message box displayed in the ribbon loader reveals it never is triggered. Additionally, I haven't seen any information resources (tutorials, walkthroughs, overviews, etc..) that say anything about needing to manually tell Outlook to display tabs.
How do I get the tabs displayed?
Is there a good resource other than MSDN that's good for VSTO newbies?
To get your ribbon displayed, on the base ribbon in your code change the RibbonType property to be Microsoft.Outlook.Explorer.
What fixed it for me (without starting a new project), in the Ribbon1.vb ribbon design, I clicked on the the Ribbon1 name above the ribbons 'File' button, in the properties pane, clicked on tabs (collection), under the heading 'Design' I changed the name (from Tab1) to something else.
Clicked ok, tested by clicking F5 and it worked. Hope this helps someone else.

Invoke the Ribbon Split button of outlook from outlook add-in

I have a custom Ribbon Split button in outlook. I ideally want to invoke the top button of the split button(not the drop down) from my outlook Add-in. To do that I got the control of split button using Redemption and when i try to execute it I am getting IAccessible Error.I am able to invoke any other normal button with this approach. I googled around all things but not able to find the solution. Any help or suggestion will be of great help. below code shows how I got the control of button
Redemption.SafeRibbonControl newControl = cRibbon.Controls.Item("Add With Template");
newControl.Execute();

My custom Outlook Add-in is causing Excel Save dialog box to hide itself

I have created an Outlook Add-In that adds a button to the ribbon of a new email window, but it's causing a problem.
Here is what happens:
User has Outlook Open.
User opens Excel.
User sends excel document to someone via File->Save and Send->Send as Attachment
User makes a change to the document
User attempts to close the document
This is when Outlook prompts the user to save the file, but the dialog box is hidden behind the Excel window and the user can't get to it without doing some shenanigans.
My Outlook Add-in does many other things, but I've pinned it down to the Ribbon.cs file I created to add a button to the new email window. When I change the RibbonType property of the OfficeRibbon object from Micorosft.Outlook.Mail.Compose to nothing, the Save Dialog shows as it should. When I change it back to "Compose", it hides the dialog box again.
Does anyone know of any way around this? I have confirmed this happens when the project is either an Outlook 2007 Add-In or an Outlook 2010 Add-In.
Thanks in advance.
So in reference to the link sent by user1217053 the answer would probably be along the lines of...
create a class scope field for the Outlook.Mailitem
have it bind to the BeforeClose event.
Inside the BeforeClose event handler for this field, add code such as ...
cMailItem_BeforeClose(bool Cancel)
{
var Insp = cMailItem.GetInspector();
Insp.Close();
Marshal.FinalReleaseCOMObject(Insp);
Insp = null;
}
Then hopefully this will get rid of the shadow inspector.
I dont know if you are still working on with this problem or not, but I faced the exact same problem and then found the solution. You must be using the Ribbon designer just like I was. The ribbon designer cause this problem. I had to change from Ribbon designer to Ribbon XML. It was a little bit of work to remove code and change some logic, but that fixed the problem. I heard the other altenative is to use a wrapper class.
Hope this helps.

Outlook 2010 addin bind event to tab selection

I need to develop an Outlook 2010 add-in and I am new to Visual Studio and C#. I am using Visual Studio 2010 and I've created a project using built-in Outlook 2010 add-in template. I've created a new ribbon and I would like to trigger an event handler when a user selects the ribbon tab. Is that possible? If yes, then what objects and what events should I use? I'd like to have some guidelines on what to do, like a sequence of instructions, 'cause I don't know where to start, really.
Well first of i can help you there but step by step i can suggest a few links that have tutorials on doing this.
But to answer if you can trigger an event if you select the ribbon tab, yes this can be done in C# its usually .focus event.
First of lets say the code might be like this your ribbon name lets say is
Ribbon ribbon1=new ribbon();
if(ribbon.focus()==true)
{
messagebox.show();
}
well i hope u get the idea these are the links that you 'might' :-) have missed
http://msdn.microsoft.com/en-us/library/bb226712%28v=office.12%29.aspx
http://msdn.microsoft.com/en-us/magazine/cc163403.aspx

Categories

Resources