add-in

popup dialog box in word addin

穿精又带淫゛_ 提交于 2019-12-07 08:39:25
问题 I am creating a ms office word addin using c#. I have a ribbon with several button. On clicking one of the button I need a popup with few textboxes. Question: How to create a popup dialog in word addin? 回答1: Add a new Form to your add-in project and design as desired. In your button click handler you just need to do "new MyPopupDialog().Show();". If you want to make the Word window the parent of your dialog so you can centre it and make it modal to the word window you can make a window

Visual Studio performance and add-ins

人走茶凉 提交于 2019-12-07 06:43:36
问题 Do the useful add-ins (Resharper, StyleCop, etc.) to Visual Studio speed up your work? Or tools need too many resources and you have to wait until each add-in completes execution? [Update]: By the way does some body notice whether performance of IDE + Resharper is better for solutions that contain web sites or web applications? 回答1: I use some add-ins as long as they don't affect the performance of Visual Studio. To that end, tools like StyleCop, MZ-Tools, and Visual Studio Commands are the

Use Excel VBA to fill out and submit Google Docs form

这一生的挚爱 提交于 2019-12-07 05:28:38
问题 I'm trying to do something like this post but with Excel VBA. I would like to submit a response on a google docs form each time a button is pressed on an Excel add-in. The addin will be an XLA file and written in VBA. I want to be able to collect what features the users are using. If someone has a better solution, I'm open. ---Edit--- This is the form I am trying to write to (excerpt of the code for one of the fields.) <div class="errorbox-good"> <div class="ss-item ss-item-required ss-text">

Unable to cast DTE, project or solution to VCProject and VCCodeModel

爱⌒轻易说出口 提交于 2019-12-07 00:21:53
问题 I am trying to get some information about c+= programs, through code. I have had some success with EnvDTE, now I need to use VCProject and VCCodeModel and I am running into casting problems (hope that is all...) In the working class, I have a DTE "application" passed from the Connect. I have: EnvDTE.Project project = application.SelectedItems.Item(1).Project; EnvDTE.Solution sol = (EnvDTE.Solution)application.Solution; I would like to use "project", not the first project in the solution as

NET Remoting and MarshalByRefObject is really dead?

和自甴很熟 提交于 2019-12-06 22:41:34
问题 I'm working on a project requiring inter-AppDomain-intra-process and inter-process-intra-machine communication. Yes... I know... NET Remoting is widely considered a legacy technology but I'm facing with two very special problems and maybe in these scenario WCF is not a full replacement of NET Remoting. 1) inter-AppDomain-intra-process communication The application I'm working on start and need to search and load one on more addins. I wish to load each addin in a separate AppDomain. I need a

How do I write to the output window in Visual Studio 2010 AddIn?

落花浮王杯 提交于 2019-12-06 20:56:28
问题 I'm writing a simple Visual Studio 2010 Add-In to do a common copying job here at work (getting dlls from libs sln). I want the progress of the copying to be written to the output window. I tried Trace.WriteLine(...) expecting that to make it, but it doesn't when I run the add-in in the debugger. I have not tried it any other way yet. I found some examples of doing that in Visual Studio 2008, but the required libs are not available to reference. Can anyone point me to how to write to the

How to search for the name of the UserProperty in Outlook.MailItems, not their value

大城市里の小女人 提交于 2019-12-06 14:56:18
BACKGROUND: Currently I am searching Outlook.MailItems where their UserProperty (here, "IsProcessed") is equal to its propertyValue (here, true or false). string propertyValue = "true"; string filter = "http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/IsProcessed LIKE \'%" + propertyValue + "%\'"; I am using this filter string in advancedSearch link to doc PROBLEM STATEMENT: My usecase is to search if these mailItems have any UserProperty assigned where name of UserProperty = "IsProcessed". Is there any way to do so using similar DASL filter string? Thanks. No,

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

本小妞迷上赌 提交于 2019-12-06 12:04:28
问题 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. 回答1: Here's something I put together in under 5 minutes to change the icon on a specific window. You could easily use this code to create a winform that would enumerate the currently open windows and allow you

Change outlook mailitem selection c#

流过昼夜 提交于 2019-12-06 11:37:25
I want to select a mailItem from my outlook add-in. I know how to display a mailitem from c# but I need to select it inside the outlook window itself. Display a mailitem: mailItem.Display(); I am using the Outlook 2010 Add-in. Anybody has any idea on how to do this? Use Explorer.ClearSelection() and then Explorer.AddToSelection() . You should use Explorer.IsItemSelectableInView() before calling AddToSelection() to ensure the item you want to select exists in the current explorer view. Application.ActiveExplorer() will give you the current active explorer if it exists. Here is a sample snippet

Call Excel Add-In function from Excel workbook VSTO

拜拜、爱过 提交于 2019-12-06 10:04:48
问题 I want to create a Method in Excel Add-In 2007 solution which can be called from my Excel Workbook 2007 solution. I explain, I want to call a method of Excel Add-In from code behind file of excel workbook 2007 solution. And I dont want to use VBA Macros. Please help, thanks in advance Thanks, Mrinal Jaiswal 回答1: After doing much googleing i m able to answer it myself now. Please follow the following steps, Declare an interface with functions you want to expose from your workbook and set its