add-in

problem with trying to create ssms add-in

I'm trying to create an add-in for SSMS 2008 and/or 2008 R2 but I've run into a problem straight away. I can get my add-in to work and on SSMS start-up get it to simply show a message box. However, after downloading various code-samples, when trying to reference Microsoft.SqlServer.Management.UI.VSIntegration.ServiceCache I get a null ...

Intercept generation of event handlers in Visual Studio

I'm making a small Visual Studio addin that changes the default generated event handler names in VS from something like txtName_Click to something user defined. I've already done this for the WinForms and WebForms designer using IEventBindingService, but I want to do this in the C# code editor as well. When you type something like "txtNa...

How to get stack trace of a running process from within a Visual Studio add-in?

I am writing a Visual Studio add-in in C# which will run while I am debugging a process in the same Visual Studio window and I need access to that the process' stack trace from within my add-in. I tried putting this code into my add-in but it returns the add-in's stack trace, not the process I am debugging. System.Diagnostics.StackTrac...

keep focus in a WPF combo box in an addin

I have a combobox in a Word addin. The contents of the combobox are often long enough to drape over Word's Zoom slider-bar control. However, selecting an item directly over the zoom control (which is hidden from view) causes the zoom control to get focus, close the combobox, and change your zoom setting! The selection in the combobox is ...

Creating Outlook 2010 Add in for 64bit

Hi, does anyone know if there is a guide to creating an outlook add in for office 2010 that runs in 64bit mode? I have an add in that DOES work on in Outlook 2010 32bit but it doesn't appear in 64bit - in the add in section its set to disabled. I have tried to compile under different target CPU's but that hasn't helped.. ...

Excel Automation Addin UDFs not accesible

I created the following automation addin: namespace AutomationAddin { [Guid("6652EC43-B48C-428a-A32A-5F2E89B9F305")] [ClassInterface(ClassInterfaceType.AutoDual)] [ComVisible(true)] public class MyFunctions { public MyFunctions() { } #region UDFs public string ToUpperCase(str...

Must Have add-ons in Visual Studio 2010

What is must have add-ons in Visual Studio 2010? ...

Retrieve DTE2 ProjectItems

How can I retrieve a file (ProjectItem) from the _applicationObject given its full path, filename, or any other property obtainable via Item.Properties.Item("PropertyName")? Surely I don't have to loop through each item in the project until I find a match? ...

Which technology should I use to pop up a simple form in my add-in DLL?

I'm building an assembly that runs as an "add-on" to a vendor's Outlook add-in. When it is time for me to execute my "action", I have to put up a simple window with a few simple controls. The vendor's add-in provides me with the parent window's integer handle. I am able to put up a form pretty easily with WinForms by adding are refere...

How to create Automation Add In Formula/Function and Excel Add In buttons (vsto) for them together?

Ok, let me explain it little bit better. Here is one example how to create formula/functions http://blogs.msdn.com/b/eric_carter/archive/2004/12/01/273127.aspx?PageIndex=1#comments I implemented something like that, I even added values in registry, so that this Automation AddIn doesn't have to be added manually in Excel, but automatic...

Why does Visual Studio 2010 hide my add-in toolbar on launch?

I've a VS add-in that creates a toolbar and displays it (based on previous visibility settings) when VS launches. The add-in works fine in VS 2005 and 2008 but in 2010, the toolbar is only visible while VS is loading. Once VS has completed loading, the toolbar disappears. I can replicate the sample problem with the Alpha Blend code sa...

Highlight all occurrences of a selected object with ReSharper

I was used to use RockScroll (or MetalScroll), but when I started to use ReSharper my RockScroll start to show some bugs. Well, this is scope to another discussion http://stackoverflow.com/questions/1089493/is-rockscroll-compatible-with-resharper. But my problem is related, because now without MetalScroll I can't highlight all occurrenc...

Disable menu icons in Visual Studio 2008 AddIn

I have developed an addin for Visual Studio 2008, which extends the main menu with custom menu items. These menu items have custom images and I finally managed to have them displayed correctly using transparency masks. The only problem that still persists is, that the icons look really ugly and unprofessional, when the menu items are dis...

tips about creating VisualStudio LanguageService (for languages similar to java)

I need to create in very short period of time proof of concept for Visual Studio Language Service supporting "Java-like" languages. I would like to ask you about experience with creating VisualStudio LanguageServices or similar addins. Where I should prepare for really hard battle and what is easier to implement than it appears to be ? ...

addins deployment

Hello Everyone, we have a product that work as standalone and Clickonce , we created some components as addins in the system (based on microsoft System.addin) we need a mechanism to update this addins on the customers in the two cases stand and click once I'm thinking for the stand alone we just send the customer a CD to update the ad...

Visual Studio 2010 on seleccion change event in add-in.

Is it possible to subscribe to selection change event in visual studio 2010 add in, or any other way to detect that event? this is what i need to do: User click anywhere in a c# code file. I need to know where the user is: Property,Function,Class,Delegate,etc. Ideas? thanks. ...

Installing Outlook Add-In

I have a problem. I've been installing my VSTO Outlook Add-In to the Outlook 2007 on the account that has no security limitations. For the setup, I am using a normal visual studio setup project. I've had the user install few versions of my application before and it worked fine. Recently, I've created a new version of my application (whic...

Access RichTextContentControl Text from an AddIn in MS Word using C#

I've created an AddIn for MS Word. There's a new tab and a button. I've added a new template document that has a RichTextContentControl in it. WORD_APP = Globals.ThisAddIn.Application; object oMissing = System.Reflection.Missing.Value; object oTemplate = "E:\\Sandbox\\TemplateWithFields\\TemplateWithFields\\Tem...

AddIn - get AppDomain from currently debugging process

hi! (quick and dirty) is it possible to get the current appdomain from a debugging process in an addin? currently i use the DebuggerEvents.OnEnterBreakMode-Event to get in the right place. i need access to HttpContext.Current of the debugged application. greetz mo ...

Creating a 'Custom Designer' Visual Studio 2010 Add-in

A major part of our work is creating and manipulating certain XML files, for which have a custom editor. The editor is starting to get creaky and we are looking at building a replacement. Since VS2010 has recently arrived, ostensibly with an improved add-in architecture (MEF?), I am interested in the possibility of building the editor as...