add-in

How to use app.config with Visual Studio add-in?

I'm building a simple VS2008 add-in. What is the best practice for storing custom run-time settings? Where do you store the app.config and how do you access it from the add-in? ...

How to cause my VSTO 2005 SE Outlook Addin to crash so that it's disabled?

For testing purposes I need to get my Outlook 2003 addin (vb.net) disabled so that it can only be reactivated through the help menu or by deleting the resilency key from within the registry. I tried to achieve this by creating an unhandled invalid cast exception during the startup eventhandler but this does not help. Outlook only says t...

Visual Studio and add-in unloading

When I remove an add-in from Visual Studio's add-in menu, it doesn't get unloaded from memory. Does anyone know if I can write some code for my add-in (in C#) that would force this unloading. Is this even possible, or do I have to restart VS? ...

Do you know any file comparison add-in for visual studio

Is there any built-in, add-in solution for visual studio to compare two files and display result with differences? I could't find one... ...

How can I speed up the opening of a WPF window in a VS add-in?

I have a Visual Studio add-in which opens a modal WPF window. My problem is that the first time round, it takes 4 seconds for the window to appear which is a clear disservice to the client. So I'm wondering if there is a way to optimize this away? Is there some kind of nifty code to preload the PresentationFramework (or whatever is slo...

How can I get the current editor in visual studio 2008 using C#

I'm writing an addin for VS 2008 in C#. And I want to know what kind of editor/designer "scope" is open (for example VS Editor/VB Editor"). Can I catch the event where the scope changes? Thanks. ...

Is there any way to change the taskbar icon of a browser in windows?

Is there any way to change the taskbar icon of a browser in windows? I open alot of browser windows, and I like to group similar websites (in tabs) by window. So I was wondering if there was a way to assign a taskbar icon to them so that you can more easily differentiate between them. ...

Excel 2002 Add-In not loading when the application opens

Good afternoon, I created an Excel .xla addin for Excel 2002. This weird behavior I am seeing from it happens only on my machine, but not on my coworkers. I would like to understand why. The add-in has a UDF function that gets called from many, many spreadsheets. My Add-in is set to open when Excel opens. When I open a blank sprea...

Right way of working with connectMode for VS add-ins

Can someone point me to a guide on how to interpret the connectMode parameter that gets passed when a VS add-in is loaded? ...

Visual Studio add-on gallery?

i'm hoping to find some add-ons for Visual Studio to address some specific usability issues. Is there a Visual Studio addons gallery that contains a huge dumping ground of addons that every person, company, yahoo and hick have created? Kind of like Vista Sidebar Gadget gallery, but for addons. Kind of like CodePlex, but for addons. Is...

How Can I add additional functions to Visual Studio's Server Explorer?

I am trying to write simple Visual Studio Add-In for code generation. In my solution explorer window there is a database connection an I want to get table names from this active connection.How can I do this? ...

.NET AddIn development

Hi, I'm writing a program that allows developers to write AddIn's for it and I'd like developers to be able to hook into events happening in the program. My code isn't compiling because I can't declare a delegate in the IMyProgram interface. So I suppose this is more of a design question. How would you go about getting an interface pa...

Creating a version-independent outlook-addin

When using the add-in wizard for outlook add-ins in Visual Studio 2008, I have the choice between creating a add for Outlook 2003 and Outlook 2007 (both using .NET). However, if I chose one of these, the add-in doesn't run in the other version. What's the best way to create a add-in which runs in both versions? ...

CommandBars.FindControl throwing an exception

I am trying to use the FindControl Method of the CommandBars object in a VSTO Word addin to get what else a command bar object Code is as follows private void WireContextMenu(string MenuID,string Tag, string ID, ref Office.CommandBarButton Control) { try { object missing = System.Type.Missing; ...

How do firefox extensions make use of the whole screen in 3D (eg. CoolIris) ?

I understand that Firefox addins can be created in Javascript and Chrome. How do they run advanced graphics applications such as CoolIris ? ...

Office XP Shared Addin VS 2008

I'm trying to create a Shared Addin using VS 2008 for Office XP (Excel to be precise). However, after creating the project in Visual studio and changing the references to Office XP (apart from Extensibility which I don't seem to be able to find a copy for office xp) and adding excel.exe to the references as well. I now don't seem to be a...

Attaching to a child process automatically in Visual Studio during Debugging

When writing plugins for media center your plugin is hosted in ehexthost.exe this exe gets launched from ehshell.exe and you have no way of launching it directly, instead you pass a special param to ehshell.exe which will launch the plugin in a seperate process. When we are debugging media browser I find the process of attaching to a se...

Testing Outlook VSTO Addins

I am trying to write a really simple Outlook VSTO add in that checks email that is being sent for a few simple properties. My problem is that I cannot seem to install/test the add in using Outlook. I have added unit tests that ensure the code I have written likely does what it should but that final level of integration eludes me. Any sug...

"Open in visual studio" link in an ASP.net exception default page

When my ASP.NET application crashes (when it shows the default exception page), I'd like to be able to click on a line of the call stack in the browser and Visual Studio would open the code file at the given line. Do you think it's possible ? Maybe with a macro/add-in ? ...

c# - assigning methods to dynamically created controls

Hi, I'm designing an application that supports plugin development. Its more of a learning exercise. I've come across a problem I don't know how to solve. All of the assemblies (plugins) being loaded into my app contain a showPrefs() method. As I load each assembly, I want to assign a button to each one so that when I click on the butt...