Visual Studio Extensibility ForumDiscuss Visual Studio Extensibility (VSX), including the Visual Studio SDK, Text Templates (T4), add-ins, and macros.© 2009 Microsoft Corporation. All rights reserved.Sat, 28 Nov 2009 12:34:08 Za6b3f7be-4a18-4637-a55a-41b5596cd903http://social.msdn.microsoft.com/Forums/en/vsx/thread/62cfb566-6da5-4810-8d24-9c2d46201a0dhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/62cfb566-6da5-4810-8d24-9c2d46201a0dMitesh Khatrihttp://social.msdn.microsoft.com/Profile/en-US/?user=Mitesh%20KhatriShared excel add in regional setting problemHi,<br/> I create a Excel 2007 (Enterprises edition) Add ins using VS 2005 and regional setting set to United States (English). It is working fine where regional setting set to United States English. but when Regional settings are changes from United States (English) to other laungage then this add ins not working. can any one suggest how i solve this issue.<br/> <br/> Thanks<hr class="sig">~Khatri Mitesh <br/> khatrimitesh@hotmail.com <br/> Software Developer <br/> Rajasthan-India <br/> http://www.youtube.com/watch?v=-oJaaPCrk3QSat, 28 Nov 2009 12:34:07 Z2009-11-28T12:34:08Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/222cffb9-5d65-4815-8bd3-6c867bebba73http://social.msdn.microsoft.com/Forums/en/vsx/thread/222cffb9-5d65-4815-8bd3-6c867bebba73Sergiy Byelozyorovhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sergiy%20ByelozyorovMacro: how to create a macro to run without build?I have big project, which takes to build one hour and half. Even if there were no changes it always recompiles some files which takes around 3-5 minutes. I don't want the project to compile if there were no changes or sometimes even after I made some changes (just run last-compiled executable). Whenever I press the &quot;Run&quot; button, I am offered a prompt window with a choice whether I want to build the project or not. <div><br/></div> <div>This works just fine, but I would like to avoid extra clicking and write a macro (an set up hot key for it) which will compile changes in project and run new executable and another macro which will just run the last-compile executable. However Macro Recorder does not remember my choice in prompt window and I still have to click that button... can I automate this somehow?</div>Sun, 22 Nov 2009 18:03:29 Z2009-11-28T10:45:57Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/ad413f01-0f4e-4f86-b168-d8666c64ac86http://social.msdn.microsoft.com/Forums/en/vsx/thread/ad413f01-0f4e-4f86-b168-d8666c64ac86Aldo Nunezhttp://social.msdn.microsoft.com/Profile/en-US/?user=Aldo%20NunezDebugger: I thought breakpoints were created and bound after LoadCompleteEvent.I'm writing a Debug Engine with VS 2008 on 64-bit Windows Vista.<br/> <br/> Can the timing of the SDM calling IDebugEngine2::CreatePendingBreakpoint and Bind be controlled at all, or does it simply happen any time after the program create event? I was led to believe that it would only happen after IDebugLoadCompleteEvent2 is sent:<br/> <br/> http://msdn.microsoft.com/en-us/library/bb146992%28VS.80%29.aspx<br/> http://msdn.microsoft.com/en-us/library/bb161947%28VS.80%29.aspx<br/> <br/> If that was the case, then IDebugPendingBreakpoint2::Bind and the module and symbol load handling could be made very simple. Unfortunately, from experimenting, I noticed that it might come before or after the load complete event. I think it would make it simpler and more efficient if Bind was called between the load complete event being sent, and IDebugProgram2::Continue being called.<br/> <br/> I'm sending the following events while debugging a simple test application:<br/> - Engine Create<br/> - Program Create<br/> - Module Load (process image)<br/> - Thread Start<br/> - Module Load (ntdll.dll)<br/> - Module Load (kernel32.dll)<br/> - Module Load (msvcr90d.dll)<br/> - Load Complete<br/> <br/> What's the official word on this interaction?<br/> <br/> By the way, although the documentation for VS debugger extensibility is greatly appreciated, it would be even better if it cleared up questions about timing and threading.<br/> <br/> Thanks,<br/>   AldoSat, 28 Nov 2009 09:03:12 Z2009-11-28T09:03:13Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/6a72a996-372d-4481-ac8e-04e32b9af049http://social.msdn.microsoft.com/Forums/en/vsx/thread/6a72a996-372d-4481-ac8e-04e32b9af049Hepsi. Phttp://social.msdn.microsoft.com/Profile/en-US/?user=Hepsi.%20PHow to display an assembly in the "Add Reference" dialog box<p>Hi,</p> <p>I want to craete a setup for adding the class library which i have created ,to the add reference dialog box.i.e when i create a new application I want the class library to be displayed in the Add Reference dialog box without browsing the dll.</p> <p>Please provide references for the above mentioned problem</p> <p>Thanks in advance</p>Fri, 27 Nov 2009 11:38:28 Z2009-11-27T21:21:47Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/c385d19a-d80b-4633-a6f5-61cd6b404bdchttp://social.msdn.microsoft.com/Forums/en/vsx/thread/c385d19a-d80b-4633-a6f5-61cd6b404bdcNikita Manovichhttp://social.msdn.microsoft.com/Profile/en-US/?user=Nikita%20ManovichDIA SDK: "program string" format (IDiaFrameData::get_program)Hi,<br/> <br/> I use &quot;program string&quot; for getting information about stack frame. Using Visual Studio 2010 Beta I have found out that there are a lot of new elements (@, $20, $23 and so on) and only poor documentation (http://msdn.microsoft.com/en-us/library/aaxh8h87.aspx). Could somebody please publish documentation or description of new elements? How do user should use this API without any useful documentation?<br/> <br/> $20 is location of ebx in the stack, @ is 'and' operation, $23 is location of esi in the stack and so on... Am I right?<br/> <br/> It is &quot;dia2dump.exe -fpo&quot; output:<br/> ......<br/> 0001:00000115         15        0        4        0        0        8 N   N   N $T0 $ebp = $eip $T0 4 + ^ = $ebp $T0 ^ = $esp $T0 8 + =  $23 $T0 4 - ^ =  $24 $T0 8 - ^ = <br/> 0001:00000130        1AA       6C        0        0       37       10 N   Y   Y $T1 .raSearch = $T0  $T1 4 - 8 @ = $ebp $T1 4 - ^ = $eip $T1 ^ = $esp $T1 4 + = $20 $T0 112 - ^ =  $23 $T0 116 - ^ =  $24 $T0 120 - ^ = <br/> 0001:000002E0         99        C        0        0        A        C N   N   Y $T0 $ebp = $eip $T0 4 + ^ = $ebp $T0 ^ = $esp $T0 8 + =  $20 $T0 16 - ^ =  $23 $T0 20 - ^ =  $24 $T0 24 - ^ =<br/> .....<br/>Fri, 27 Nov 2009 20:28:14 Z2009-11-27T20:28:15Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/839f1fa8-99ac-4e8f-83ac-ae5b4de1d03bhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/839f1fa8-99ac-4e8f-83ac-ae5b4de1d03bBoyd Taylorhttp://social.msdn.microsoft.com/Profile/en-US/?user=Boyd%20TaylorOsloClass Library project shuts down when created and can't open itI am working with the vs2010 beta 2 Ultimate and the November CTP of SQL Modeling services on the PDC laptop. when I try and create an Oslo Class library Project in VS2010. VS2010 shuts down just before it finishes loading.  If I try an launch the project VS2010 creates from the file explorer I get the same experience. Nothing in the Event Viewer no dialog to indicate why. Anyone else seeing this. The only other wild card I potentially have is I upgraded SOL Server Express to Developer but it is at SP1 as requested in the SQL Server Modeling Pre Reqs. I have uninstalled all and reinstalled twice. same behaivor.Fri, 27 Nov 2009 17:41:19 Z2009-11-27T17:41:20Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/e7a835d7-e517-41bb-9d72-a61f995004f6http://social.msdn.microsoft.com/Forums/en/vsx/thread/e7a835d7-e517-41bb-9d72-a61f995004f6FBNitrohttp://social.msdn.microsoft.com/Profile/en-US/?user=FBNitroMPF: Hidden Dependant File NodesI have this code in the constructor for MyDependentFileNode:<br/> <br/>     public class MyDependentFileNode: DependentFileNode<br/>     {<br/>         public MyDependentFileNode(ProjectNode root, ProjectElement element)<br/>             : base(root, element)<br/>         {<br/>             this.SetProperty(GetItemId(this), (int)__VSHPROPID.VSHPROPID_IsHiddenItem, true);<br/>         }<br/> <br/>         public uint GetItemId(IVsHierarchy hierarchy)<br/>         {<br/>             object extObject;<br/>             uint itemId = 0;<br/>             IVsHierarchy tempHierarchy;<br/> <br/>             hierarchy.GetProperty(VSConstants.VSITEMID_ROOT, (int)__VSHPROPID.VSHPROPID_BrowseObject, out extObject);            <br/>             IVsBrowseObject browseObject = extObject as IVsBrowseObject;            <br/>             if (browseObject != null)<br/>             {<br/>                 browseObject.GetProjectItem(out tempHierarchy, out itemId);<br/>             }<br/> <br/>             return itemId;<br/>         }<br/>     }<br/> <br/> I expect that my dependant file node should be invisible, but it still appears in the Solution Explorer.  I've also tried the property __VSHPROPID.VSHPROPID_IsNonMemberItem but I didn't make a difference.  (I've verified that the constructor is being called etc.)<br/>Fri, 27 Nov 2009 01:49:19 Z2009-11-27T17:14:07Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/e88c822c-1e10-440f-b2a7-50c31ad636abhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/e88c822c-1e10-440f-b2a7-50c31ad636abnhalehttp://social.msdn.microsoft.com/Profile/en-US/?user=nhaleUpdate/Reload References from ProjectfileHi,<br/><br/>i created now my own projecttype and its working.<br/>The question is, based on an event or sth. similar I need to update the references.<br/>So completly remove the existing and reload different ones from the projectfile.<br/>This is needed to ensure different build environments. Can I define some variable like it can be used with the Configuration?<br/><br/>For example:<br/> <div style="background-color:white;color:black"> <pre><span style="color:blue">&lt;</span><span style="color:#a31515">ItemGroup</span> <span style="color:red">Condition</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue"> '$(BuildSwitchVar)' == 'One'</span><span style="color:black">&quot;</span><span style="color:blue">&gt;<br/></span><span style="color:blue"> &lt;</span><span style="color:#a31515">Reference</span> <span style="color:red">Include</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">LibOne.dll</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;</span> <span style="color:blue">&lt;/</span><span style="color:#a31515">ItemGroup</span><span style="color:blue">&gt;</span> <span style="color:blue">&lt;</span><span style="color:#a31515">ItemGroup</span><span style="color:blue">&gt;<br/></span><span style="color:blue"> &lt;</span><span style="color:#a31515">Reference</span> <span style="color:red">Include</span><span style="color:blue">=</span><span style="color:black">&quot;</span><span style="color:blue">LibTwo.dll</span><span style="color:black">&quot;</span><span style="color:blue">/&gt;<br/></span><span style="color:blue">&lt;/</span><span style="color:#a31515">ItemGroup</span><span style="color:blue">&gt;</span> </pre> </div> <br/>So based on the condition, when BuildSwitchVar is set to &quot;One&quot;, only LibOne.dll should be loaded else LibTwo.dll<br/><br/>Summarized:<br/>- Is a switch with or without reload possible?<br/>- Is it possible to define a variable, which can be used as a condition argument in the projectfile?<br/><br/>Thanks in advance<br/><br/>Niels<br/>Thu, 26 Nov 2009 20:31:59 Z2009-11-27T16:26:22Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/1cc8e9a1-5430-4e27-92e6-d5ae678ed12bhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/1cc8e9a1-5430-4e27-92e6-d5ae678ed12bKiran Chand Palakkattirihttp://social.msdn.microsoft.com/Profile/en-US/?user=Kiran%20Chand%20PalakkattiriExending Quick WatchHi All,<br/><br/>Is there any direct way to extend the visual studio quick watch?<br/><br/>I want to use it in the isolated shell in a dsl modeling environment and I have no C# language service available. We are NOT using the debugger extensibility for debugger; instead using runtime simulation logic.<br/><br/>Please do not suggest me to write a custom visualizer :'(<hr class="sig">Kiran Chand Palakkattiri<br/> [Life is not a personality contest]<br/> kiran.chand@live.inFri, 13 Nov 2009 18:07:05 Z2009-11-27T15:15:22Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/794ccf80-1019-4aaa-907e-85445e0b96a6http://social.msdn.microsoft.com/Forums/en/vsx/thread/794ccf80-1019-4aaa-907e-85445e0b96a6Kiran Chand Palakkattirihttp://social.msdn.microsoft.com/Profile/en-US/?user=Kiran%20Chand%20Palakkattirisetting modeling doc view to be readonlyHi All,<br/><br/>Can anybody suggest me how to set the instance of the particular docview in DSL to be readonly?<br/><hr class="sig">Kiran Chand Palakkattiri<br/> [Life is not a personality contest]<br/> kiran.chand@live.inFri, 27 Nov 2009 15:07:40 Z2009-11-27T15:07:41Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/36463c1a-f43e-497e-ae72-c8c10cdebe96http://social.msdn.microsoft.com/Forums/en/vsx/thread/36463c1a-f43e-497e-ae72-c8c10cdebe96JanBaanhttp://social.msdn.microsoft.com/Profile/en-US/?user=JanBaangetting vcproject acess(I tried to post this before but could not find the message anymore, hence this r epeat)<br/><br/>We have a project package that is used with VS2003, VS2005 and VS2008. Of course, we now want to use it with VS2010. Our project encapsulates a VC project and we use code like this to get access to that:<br/><span style="color:#808080;font-size:xx-small"><span style="color:#808080;font-size:xx-small">#import &quot;C:\Program Files\Microsoft Visual Studio 9.0\VC\vcpackages\vcprojectengine.dll&quot; named_guids rename(&quot;PropertySheet&quot;,&quot;__PropertySheet&quot;) rename(&quot;GetObject&quot;, &quot;__GetObject&quot;)<br/>using namespace VCProjectEngineLibrary;<br/><br/>We can ow access C/C++ and Linker properties. <br/>With 2010, this no longer works! There is no vcprojectengine.dll, and vcproject.dll does not export type definitions.<br/>How can we solve this?<br/><br/>Thanks, Jan</span></span>Thu, 26 Nov 2009 08:22:12 Z2009-11-27T14:41:07Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/62370e22-0692-4df2-aa22-98666180e215http://social.msdn.microsoft.com/Forums/en/vsx/thread/62370e22-0692-4df2-aa22-98666180e215NagaVitalhttp://social.msdn.microsoft.com/Profile/en-US/?user=NagaVitalNeed a tool which works similar to "Find All References" in Visual Studio but it should give the root method which will be impacted due to changes in another methodIs there any tool to which we can give input as Class1.C1Method1 and it will return Program.Main ( Class1.C1Method1 is used in Class2.C2Method1 and this is used in Program.Main I need this root)<br/><br/>In below code If i try to use &quot;Find All References&quot; on Class1.C1Method1, It will list only Class2.C2Method. but i need List which contains Program.Main. Can i achive this through any tool<br/><br/>I thought of running &quot;Find all references&quot; through code, and read data in &quot;Find Symbol Results&quot; window and execute again &quot;Find all references&quot; on each item in the &quot;Find Symbol Result&quot; window. but i read in some msdn forum which says we cant read data in &quot;Find Symbol Results&quot; window, is there any other way?<br/><span style="font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">class</span></span><span style="font-size:x-small"> </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Class1<br/></span></span><span style="font-size:x-small">{<br/></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">   public</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">void</span></span><span style="font-size:x-small"> C1Method1(){} <br/>}</span></p> <p><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">class</span></span><span style="font-size:x-small"> </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Class2</span></span><span style="font-size:x-small">{<br/></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">    public</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">void</span></span><span style="font-size:x-small"> C2Method1()<br/>    {<br/></span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">        Class1</span></span><span style="font-size:x-small"> c1 = </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">new</span></span><span style="font-size:x-small"> </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Class1</span></span><span style="font-size:x-small">();<br/>        c1.C1Method1();<br/>    }<br/>}<font size=2 color="#0000ff"><font size=2 color="#0000ff"><font size=2> <p> </p> </font>class</font></font></span></p> <font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>class</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Program</span></span><span style="font-size:x-small">{<br/></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">     static</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">void</span></span><span style="font-size:x-small"> Main(</span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">string</span></span><span style="font-size:x-small">[] args)<br/>    {<br/></span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">        Class2</span></span><span style="font-size:x-small"> c2 = </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">new</span></span><span style="font-size:x-small"> </span><span style="color:#2b91af;font-size:x-small"><span style="color:#2b91af;font-size:x-small">Class2</span></span><span style="font-size:x-small">();<br/>        c2.C2Method1();<br/>    }<br/>}</span></p> </span>Fri, 27 Nov 2009 13:01:35 Z2009-11-27T13:01:36Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/bbefbb07-cbc5-4223-99cb-f600f1dc9b70http://social.msdn.microsoft.com/Forums/en/vsx/thread/bbefbb07-cbc5-4223-99cb-f600f1dc9b70CharithJhttp://social.msdn.microsoft.com/Profile/en-US/?user=CharithJIs it possible to change the ToolWindow Title dynamically?<p>Hi,<br/><br/>I want to change the ToolWindow title dynamically. I just tried to add a setter, then it gives an error <br/><br/>public override string WindowTitle</p> <p>{ <br/> get { return windowTitle; }<br/><em><strong> set { windowTitle = value }</strong></em>}</p> <p>ERROR : 'set_WindowTitle': cannot override because 'string Microsoft.VisualStudio.Modeling.Shell.ToolWindowTitle' doesn't have an overridable set accessor.<br/><br/>And there is no way to Invalidate the toolwindow. <br/><br/>Is there anyway to change the Toolwindow title dynamically?<br/><br/>Thanks,</p><hr class="sig">CJFri, 27 Nov 2009 09:29:17 Z2009-11-27T09:29:17Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/a248ebde-84ae-4ef9-a8b3-bac08806900chttp://social.msdn.microsoft.com/Forums/en/vsx/thread/a248ebde-84ae-4ef9-a8b3-bac08806900cHepsi. Phttp://social.msdn.microsoft.com/Profile/en-US/?user=Hepsi.%20PAdd user control to the toolboxHi,<br/>I have created a custom project template which gets added through an installer which i have set up.Now my requirement is when i run the installer I want custom user controls to get added to the toolbox when i create the application using the template.<br/>Flow is :<br/>1.Run the installer which will insatll the custom project template in My template section of VS<br/><br/>2.When i select the template a new application gets created <br/><br/>Now in this application when i open the toolbox i want the usercontrols to be present in a seperate tab<br/><br/>Please provide references for the same<br/><br/>Thanks in advance<br/>Thu, 26 Nov 2009 12:27:47 Z2009-11-27T09:02:37Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/1e151ba3-4d55-4c67-acdc-0f30c2c9190ahttp://social.msdn.microsoft.com/Forums/en/vsx/thread/1e151ba3-4d55-4c67-acdc-0f30c2c9190aAnkesh772http://social.msdn.microsoft.com/Profile/en-US/?user=Ankesh772VSIP Integration<p>Is it possible to open custom editor window on custom click event.</p>Thu, 26 Nov 2009 07:43:28 Z2009-11-27T07:02:41Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/168ba86a-6ae2-42b1-b277-de5fb60ae663http://social.msdn.microsoft.com/Forums/en/vsx/thread/168ba86a-6ae2-42b1-b277-de5fb60ae663apple133292http://social.msdn.microsoft.com/Profile/en-US/?user=apple133292SDK Package : How to know visual studio has started in my package's program<p>Hello, everyone <br/>  I have a problem , How to know visual studio has Started in my vspackage ? <br/>  Because I need to read a property file to control menu's state ,when visual studio started . <br/>  This vspackage is a c++ program .<br/>   <br/>  How can i do this. please any bosy suggest me?<br/><br/>Thanks<br/>Harry.xu</p>Fri, 27 Nov 2009 05:41:20 Z2009-11-27T05:41:20Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/f8317e65-56ac-4b27-b634-b952a642091chttp://social.msdn.microsoft.com/Forums/en/vsx/thread/f8317e65-56ac-4b27-b634-b952a642091cNick Sturgehttp://social.msdn.microsoft.com/Profile/en-US/?user=Nick%20SturgeHow do I disable intellisense in VS 2008?I'm using VS 2008, SP1, to write code in VB.NET.  I'd like to be able to turn intellisense parameter lists and auto-completion lists off and on via a hotkey.  I've had a go with the macros suggested here: <a href="http://blogs.msdn.com/vcblog/archive/2007/11/19/controlling-intellisense-through-macros.aspx">http://blogs.msdn.com/vcblog/archive/2007/11/19/controlling-intellisense-through-macros.aspx</a> <div>Those macros certainly don't make any difference to intellisense for VB, in fact, they reference C++ directly.  Interestingly, whilst I don't get any errors from those macros, the options I can see in the &quot;Tools | Options&quot; dialog for C++ don't change even after running those macros.</div> <div><br/></div> <div>Given that such macros are theoretically available, can anyone help me do the equivalent for VB?  On the same lines, the macros use DTE.Properties - is there any way I can enumerate the available properties and items within them? - if I was able to do that, I might be able to figure out the intellisense bit for myself.</div> <div><br/></div>Wed, 25 Nov 2009 13:20:27 Z2009-11-27T05:41:12Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/85dff3e7-eb85-4f9d-b536-f4a134aabbaehttp://social.msdn.microsoft.com/Forums/en/vsx/thread/85dff3e7-eb85-4f9d-b536-f4a134aabbaeLyubomir Dokovhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lyubomir%20DokovIVsTrackProjectDocumentsEvents2.OnQueryRenameDirectories is not called when renaming a directory?Hi.<br/><br/>It seems that the OnQueryRenameDirectories method is not called when renaming a folder in the solution explorer. The folder is within a C# project and is created using the Add-&gt;Folder context menu (e.g. perfectly normal folder). However, when I rename it (press F2, write another name and press Enter) the method called is not OnQueryRenameDirectories, but OnQueryRenameFiles. I expected behaviour similar to the OnQueryRemoveXXX methods - first the OnQueryRemoveDirectories method is called, then the OnQueryRemoveFiles method is called with files contained in the removed directory.<br/><br/>Am I missing something here?<br/><br/>Thanks.<br/><br/><br/>---<br/>Forgot to mention: Visual Studio 2008 Team System Developer Edition SP1, Windows 7 x64Fri, 27 Nov 2009 04:24:07 Z2009-11-27T04:24:08Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/06868061-0092-4ea2-a7bf-673adf5b9099http://social.msdn.microsoft.com/Forums/en/vsx/thread/06868061-0092-4ea2-a7bf-673adf5b9099Simon Gateshttp://social.msdn.microsoft.com/Profile/en-US/?user=Simon%20GatesCommunication between custom debugger and IDE.<div>Hi,</div> <div><br/></div> <div>I have a custom project VS package with a debugger written in C# with the MPF.</div> <div><br/></div> <div>I would like to add a new dockable IDE element that displays information only available to the debugger. Is there a standard way for IDE elements to communicate with a custom port/process/program and vice versa?</div> <div><br/></div> <div>Thanks,</div> <div><br/></div> <div>Simon.</div> <div><br/></div>Fri, 20 Nov 2009 11:07:27 Z2009-11-27T03:48:33Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/176e14b3-61af-4036-9caf-5fb201868204http://social.msdn.microsoft.com/Forums/en/vsx/thread/176e14b3-61af-4036-9caf-5fb201868204Carlimirhttp://social.msdn.microsoft.com/Profile/en-US/?user=CarlimirVS 2008 SDK dll's platformHello, I'm trying to call some MS VS2008 SDK assemblies (like Microsoft.VisualStudio.Modeling.SDK.dll, etc.) in Windows Azure. I'm getting the error: &quot;<em>Could not load file or assembly 'Microsoft.VisualStudio.Modeling.Sdk.Diagrams.GraphObject' or one of its dependencies. An attempt was made to load a program with an incorrect format&quot; </em>but I've got this assembly with all of its dependences as local copy in my project<em>.</em> Azure Forums guys said that it could be caused by trying to load a 32-bit DLL in Azure Platform (x64). Are these assemblies 32-bit?? Does VS 2008 SDK assemblies exist for x64 platforms??<br/><br/>Thanks a lot!!<br/><br/>Regards! Wed, 18 Nov 2009 11:46:34 Z2009-11-27T03:41:00Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/1155e876-d166-4ff1-9ddc-ade95507b6d4http://social.msdn.microsoft.com/Forums/en/vsx/thread/1155e876-d166-4ff1-9ddc-ade95507b6d4sathya.cshttp://social.msdn.microsoft.com/Profile/en-US/?user=sathya.csMissig projectname.exe error while runningWhen i try to run cosole program in vc++ or vc# the following error  dialog is coming&quot;Visual Studio cannot start debugginf because the debug target'c:\projects\....]basics.exe'is missing.i am new to VS..wat can i do..Sun, 22 Nov 2009 01:45:54 Z2009-11-27T02:36:21Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/5fc13fc1-ec3a-4ba2-9917-0ec9a53b021chttp://social.msdn.microsoft.com/Forums/en/vsx/thread/5fc13fc1-ec3a-4ba2-9917-0ec9a53b021cVladimir.Ilichttp://social.msdn.microsoft.com/Profile/en-US/?user=Vladimir.IlicSDK Package - DSL: Open DSL diagram from custom form designerHello,  <div><br/></div> <div>I've developed a custom form designer which at this point generates couple of files among which is a .cs file we use for code behind.</div> <div>So when you double click a button an event handler is created and you are positioned in the method's body - like in a standard Windows Forms Designer.</div> <div><br/></div> <div>The idea now is to use a diagram instead, for instance, double click on a button should open up a diagram and select a specific item on it.</div> <div>This is a behavior similar to the way C# code editor context menu option &quot;View Class Diagram&quot; opens up the class diagram and selects the method you were in. </div> <div><br/></div> <div>Any pointers on the right approach to accomplish this would be appreciated.</div> <div><br/></div> <div>Oh, yes, I'm using VS 2008.</div> <div><br/></div> <div>Thanks,</div> <div>best regards,</div> <div>Vladimir Ilic</div> <div><br/></div>Thu, 26 Nov 2009 17:55:37 Z2009-11-26T17:55:37Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/58fe5b54-519b-4653-b4a4-4eb2ff2e4ed7http://social.msdn.microsoft.com/Forums/en/vsx/thread/58fe5b54-519b-4653-b4a4-4eb2ff2e4ed7Miro Kropacekhttp://social.msdn.microsoft.com/Profile/en-US/?user=Miro%20KropacekHow to add C++ method using VCCodeClass::AddFunction when declaration exists?Hi, <div><br/></div> <div>I'm fighting with the following problem: I want to add definition of some C++ method, let's say void MyClass::MyMethod(void). When I do it from scratch, i.e. I write empty class in text editor and call my addin on it, it creates nice declaration (void MyClass(void);) within the class and definition as well (I can even specify separate .cpp file for the definition, nice!). But -- when the declaration exists within a class, the AddFunction returns exception. I even tried to use VCCodeModel::AddFunction with &quot;MyClass::MyMethod&quot; name but again, exception, I think it's because it's made for top-level functions and not class methods.</div> <div><br/></div> <div>Is there any way out of this?</div>Thu, 26 Nov 2009 15:22:35 Z2009-11-26T15:22:36Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/29124bbe-c741-4000-b785-9e71d726b7achttp://social.msdn.microsoft.com/Forums/en/vsx/thread/29124bbe-c741-4000-b785-9e71d726b7acKaruna Kumarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Karuna%20KumarHow to do new add-in for visual studion solution explorerHi,<br/><br/>I need a help in customizing context menu in visual studio solution explorer.  If i right click on a folder in explorer, then i should add a new menu called Import. if i click on import then a file will be imported to that folder. and the user should able to right click on the file so that there should be new menu called Publish.<br/><br/>All i need to do is customize my solution explorer to add new menus's etc.<br/><br/>How can i do this. please any bosy suggest me?<br/><br/>Thanks,<br/>KarunaWed, 25 Nov 2009 17:08:59 Z2009-11-26T11:09:32Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/f835dfa9-3aad-4247-a2a9-041679dce10chttp://social.msdn.microsoft.com/Forums/en/vsx/thread/f835dfa9-3aad-4247-a2a9-041679dce10cMassacrinohttp://social.msdn.microsoft.com/Profile/en-US/?user=MassacrinoA method like DTE.Solution.SolutionBuild.BuildProject that takes a target parameter for MSBuildI would like to kick off a build of a specific MSBuild target of the projects in my solution (i.e. not a default target, not Rebuild, not Clean....say, e.g. a Documentation target)<br/> <br/> Perfect thing would be a method like DTE.Solution.SolutionBuild.BuildProject that allows me to specify the MSBuild target to build<br/> Is there such a thing? Or what would be the easiest way to achieve the same functionality?<br/> <br/> Thank youWed, 25 Nov 2009 23:17:28 Z2009-11-26T10:34:48Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/b75b2d7f-2ebe-4c11-9e84-755dcae5b13ahttp://social.msdn.microsoft.com/Forums/en/vsx/thread/b75b2d7f-2ebe-4c11-9e84-755dcae5b13aLior Salemhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lior%20SalemVS2005 Addin to avoid putting .Design.dll in the GACHi all,<br/> I'm developing WinForms controls using VS2005.<br/> I am looking for a way to avoid the need to put the .Design.dll (with all designers for controls) in the GAC.<br/> My current approach is to develop an Add-in to VS2005 that will load all the required assemblies for design-time into VS2005 AppDomain.<br/> Problem is, this does not work :-(<br/> Are there 2 different AppDomains (the VS2005 Add-in and the one that is actually being used to design forms)?<br/> <br/> BTW, I already know about the AssemblyFolder and AssemblyFolderEx keys in the registry - this also is not a good solution for me (I eventually want to be able to use different versions of those .design assemblies in different solutions).<br/> <br/> Any help would be much appreciated.<br/> TIA<br/> Lior.Wed, 18 Nov 2009 07:25:20 Z2009-11-26T08:53:04Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/b35f2e5f-ca2d-46c6-a9bb-b5338b5e2716http://social.msdn.microsoft.com/Forums/en/vsx/thread/b35f2e5f-ca2d-46c6-a9bb-b5338b5e2716dushara jayasinghehttp://social.msdn.microsoft.com/Profile/en-US/?user=dushara%20jayasinghemissing build option in context menu for custom projectI started working on a custom project to add support to a 3rd party compiler toochain. I followed the steps outlined in http://mikehadlow.blogspot.com/2007/03/building-visual-studio-custom-project.html to create this add-on. However, I found that the project context menu doesn't offer the build, rebuild and clean options.<br/> <br/> In order to achieve this, I added the following code to my ProjectNode derived class:<br/> <br/> <pre lang="x-c#"> protected override int QueryStatusOnNode(Guid guidCmdGroup, uint cmd, IntPtr pCmdText, ref QueryStatusResult result) { if (guidCmdGroup == VsMenus.guidStandardCommandSet97) { if ((VsCommands)cmd == VsCommands.BuildCtx) { result |= QueryStatusResult.SUPPORTED | QueryStatusResult.ENABLED; return VSConstants.S_OK; } } return base.QueryStatusOnNode(guidCmdGroup, cmd, pCmdText, ref result); } </pre> <br/> <br/> This achieved the result I'm after. However, the IronPython sample project doesn't override this function (actually I can't figure out how IronPython does it). Have I used a less desirable approach? If so could someone explain the mechanism used by IronPython? <br/> <br/> I'm using VS2005.<br/> <br/> Thanks<br/> Dushara.<br/>Thu, 26 Nov 2009 05:58:37 Z2009-11-26T05:58:38Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/0261c3ef-6cee-41e4-bde8-2ea6c362a3d8http://social.msdn.microsoft.com/Forums/en/vsx/thread/0261c3ef-6cee-41e4-bde8-2ea6c362a3d8Naynahttp://social.msdn.microsoft.com/Profile/en-US/?user=Naynahow to get list of types in namespace spread across different files using CodeNamespace? Hi,<br/><br/>I am developing a VSPackage in C# language VS 2005.<br/><br/>I want to get a list of all types under a particular namespace, where the types are present in different files, but under the same namespace.<br/>Does CodeNamespace interface provide information about this?<br/>The collection attribute in CodeNamespace interface shows only the current file's types. It does not include types present under other files.<br/><br/>So how can i get list of types under a particular namespace using codeModel(spread across different files)?<br/><br/>Thanks,<br/>NaynaTue, 24 Nov 2009 04:40:21 Z2009-11-26T02:57:27Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/e447f8b4-669a-4f7a-b99c-8972d606b399http://social.msdn.microsoft.com/Forums/en/vsx/thread/e447f8b4-669a-4f7a-b99c-8972d606b399davija001http://social.msdn.microsoft.com/Profile/en-US/?user=davija001BeforeExecute and AfterExecute events not getting called as expected.I'm working with a visual studio 2008 package and am having a little bit of difficulty subscribing to command events.  First, the msdn documentation claims that the Events interface in dte.Events has a CommandEvents property, but it doesn't appear to be accessible.  I've had to use dte.Events.get_CommandEvents(guid, id) instead. <div><br/></div> <div>Here is a small snippet of code from my project:</div> <div> <pre lang="x-c#">protected override void Initialize() { dte = (DTE) GetGlobalService(typeof(DTE)); dte.Events.get_CommandEvents(&quot;{5EFC7975-14BC-11CF-9B2B-00AA00573819}&quot;, 224).BeforeExecute += new _dispCommandEvents_BeforeExecuteEventHandler(commandEvents_BeforeExecute); } private void commandEvents_BeforeExecute(string guid, int id, object customIn, object customOut, ref bool CancelDefault) { MessageBox.Show(String.Format( &quot;GUID: {0}\nID: {1}\nIn: {2}\nOut: {3}&quot;, guid, id, customIn.GetType(), customOut.GetType())); }</pre> As I understand it, the commandEvents_BeforeEvents() method should be fired after the File.SaveAll command gets executed.  However, I never get any such events.</div> <div><br/></div> <div>I have also tried:</div> <div> <pre lang="x-c#">dte.Events.get_CommandEvents(&quot;&quot;, 0).BeforeExecute += new _dispCommandEvents_BeforeExecuteEventHandler(commandEvents_BeforeExecute);</pre> which is supposed to subscribe to all events from what I have read.</div> <div><br/></div> <div>Is there something that I'm missing as to why I'm not getting these events?  Any help would be appreciated.  Thanks.</div> <div><br/></div> <div>My env:</div> <div>Windows XP SP3</div> <div>Visual Studio 2008 Professional SP1 </div> <div>Visual Studio package is being written in C#</div>Wed, 25 Nov 2009 22:38:52 Z2009-11-26T02:07:37Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/a903e59e-675f-48ec-bdd1-0bc093d1add1http://social.msdn.microsoft.com/Forums/en/vsx/thread/a903e59e-675f-48ec-bdd1-0bc093d1add1Fei.http://social.msdn.microsoft.com/Profile/en-US/?user=Fei.How to show modified status, "*", on my addin tool window?I created an addin to show a tool window, in which I added some treeView control to edit some data. The data item is not listed in solution explorer tree, just some of my internal data.<br/><br/>Now my question is, how to show a (*) on the title of my tool window when the data is modified, so that when the tool window is closing, a dialog box will prompt to let the user save/not save/cancel the modification? The prompt dialog should be similar to the &quot;Save changes to the following items&quot; Yes/No/Cancel dialog box when in VS2008 a code window is closing.<br/><br/>It seems that I need a custom editor. There are lots of sample <strong>packages</strong> doing this, but my project is an <strong>addin</strong> in c#.<br/><br/>Is it related to runing document table (RDT) ?<br/><br/>I searched in this forum and found that I might use IVsPersistDocData, IPersistFileFormat. But my data is some internal data, not an independed file, not listed in solution explorer tree.<br/><br/>Please help!<br/>--<br/>Edit:<br/>I'm sorry I was not clear.<br/>I want to use some interface or implement some interface so that I can notify VSShell my data is modified and let VSShell display as (*) at the title automatically, just same as the code editor window.<br/> <hr class=sig> c# new learnerMon, 16 Nov 2009 06:14:11 Z2009-11-25T21:27:55Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/f23d6bfa-2cd8-488f-aa3a-07970e40b247http://social.msdn.microsoft.com/Forums/en/vsx/thread/f23d6bfa-2cd8-488f-aa3a-07970e40b247Chr. Weinerthttp://social.msdn.microsoft.com/Profile/en-US/?user=Chr.%20WeinertEnvDTE - ProjectItem - FileCodeModel: How to create Method bodyHi everyone,<br/>I tried to generate some classes out of my VS Add-In. Therefore i created a new ProjectItem. Now I want to create a Class with a few methods.<br/><br/>I can add a Namespace to the FileCodeModel of the ProjectItem. After this, i create a new Class througth the AddClass-Method of the Namespace-Instance. The Class provides a method to create a function, but then there is no way (or I can´t find it) to create the body of the function.<br/><br/>Has anyone tried this and can make some suggestions?<br/><br/>Best Regards<br/>Chris<br/>Thu, 23 Jul 2009 13:33:23 Z2009-11-25T20:53:50Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/4d4b768f-63a5-4eb2-9dc4-d5b9e64b6500http://social.msdn.microsoft.com/Forums/en/vsx/thread/4d4b768f-63a5-4eb2-9dc4-d5b9e64b6500shankzzhttp://social.msdn.microsoft.com/Profile/en-US/?user=shankzzAdd new menu item on right-click of a file in Solution ExplorerHi all,<br/> <br/> I am using VS2008 SDK and I have been able to add a new menu item to the right-click on a file in the solution explorer using         <br/> &lt;Parent guid=&quot;guidSHLMainMenu&quot; id=&quot;IDM_VS_CTXT_ITEMNODE&quot; /&gt; <br/> in the vsct file and defining proper group and button.<br/> <br/> Now I want to achieve the following two things:<br/> 1. enable or disable this item based on the file type (for example, this item should be enabled only for asmx files)<br/> 2. get the file name of the file that I right-clicked<br/> <br/> Any pointers would be very helpful!<br/> <br/> Thanks in advance,<br/> ShankarSat, 14 Nov 2009 19:44:57 Z2009-11-25T17:18:53Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/18fd6b24-74eb-4175-921d-3b73c35ea56chttp://social.msdn.microsoft.com/Forums/en/vsx/thread/18fd6b24-74eb-4175-921d-3b73c35ea56cAltabearhttp://social.msdn.microsoft.com/Profile/en-US/?user=AltabearNo Visual C++ Project Is Loaded "appeared"Hi,<br/>One of our currently operating web projects, written in vb.net suddenly shows &quot;No Visual C++ Project Is Loaded&quot; when I try to look at the property manager.<br/><br/>How can I get rid of this, and see my normal vb.net property manager?<br/><br/>thanks<br/>DavidTue, 24 Nov 2009 23:48:57 Z2009-11-25T16:10:17Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/3004ce13-b8fd-434b-bad9-c84633eeab93http://social.msdn.microsoft.com/Forums/en/vsx/thread/3004ce13-b8fd-434b-bad9-c84633eeab93davija001http://social.msdn.microsoft.com/Profile/en-US/?user=davija001What is the proper way to register a custom build logger for use within Visual Studio (Microsoft.Build.BuildEngine.Engine)I'm currently working on trying to build a custom logger into the build process.  However, I seem to be running into a few hiccups. <div><br/></div> <div>Here is my environment:</div> <div>Windows XP Pro SP3</div> <div>Visual Studio 2008 Pro SP 1</div> <div>Project is a Visual Studio SDK Package (C#) auto loaded in the VSConstants.UICONTEXT_SolutionExists profile.</div> <div><br/></div> <div>I have defined a custom logger derived from the Logger class that is much the same as the one listed in the examples on the msdn page (FileBuilder).</div> <div>My logger subscribes to all of the build events in the eventsSource object.</div> <div><br/></div> <div>In the Initialize method of the main package, I added the following:</div> <div><br/></div> <div style="color:Black;background-color:White"> <pre>Microsoft.Build.BuildEngine.Engine.GlobalEngine.RegisterLogger(<span style="color:Blue">new</span> BuildLogger(<span style="color:Blue">this</span>)); </pre> </div> <br/> <div>When I run it, the package initialize method is called when the solution is loaded (as expected).  However, the logger gets a build started/finished message even though a build was not run.  After that, any build actions I attempt to perform don't send events to my logger.</div> <div><br/></div> <div>I also noticed that according to the documentation on the Logger class, the Initialize method is supposed to be called before each build.  This call only ever happens once.</div> <div><br/></div> <div>It almost seems like the build engine instance that the solution is using didn't get the logger registration.</div> <div><br/></div> <div> <div>Am I missing something here?</div> <div><br/></div> </div>Tue, 24 Nov 2009 02:06:17 Z2009-11-25T15:50:50Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/097fffaa-52de-4d82-bc68-a159184ae44ehttp://social.msdn.microsoft.com/Forums/en/vsx/thread/097fffaa-52de-4d82-bc68-a159184ae44eSubtleThttp://social.msdn.microsoft.com/Profile/en-US/?user=SubtleTCode Generation for VC++ projects in Visual StudioHi All,<br/><br/>I'm working on a pure C++ (Unmanaged) project.<br/>I use Visual Studio 2005 extensively for all development.<br/><br/>Now, my requirement concerns automatic code generation.<br/><br/>I know that in C# projects, I can write my own Code generator dll (using <span style="font-size:x-small;color:#008080"><span style="font-size:x-small;color:#008080">BaseCodeGeneratorWithSite</span></span>),<br/>and then associate my input file with the generator through the 'Custom Tool' property.<br/><br/>I wanted to achieve the same functionality in C++ (unmanaged) projects.<br/><br/>I have tried to explore my options and have come across CodeDom and T4, but I'm super-confused :)<br/><br/>Any help would be welcomed!<br/><br/>Regards,<br/>SubtleTWed, 25 Nov 2009 13:15:58 Z2009-11-25T13:15:59Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/4cc74f9e-1949-43ba-8407-934f6664167dhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/4cc74f9e-1949-43ba-8407-934f6664167dStefan Vallasterhttp://social.msdn.microsoft.com/Profile/en-US/?user=Stefan%20Vallaster[Dsl Tools] Has custom source Connector behaviour is strangeHi,<br><br>I'm using the Has custom source option on a connector in my dsl. I have implemented the needed Methods. And the connection between the two shapes is working. However the routing behaviour of the connector is strange. If a new connection is made the source shape is enlarged and it's also very difficult to resize the connected shapes?<br><br>Do I have to override or implement some aditional methods?<br><br>Regards<br>Stefan<br> Thu, 28 Aug 2008 12:37:14 Z2009-11-25T13:15:22Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/6b688f8c-1008-4796-a551-cbdeed506c05http://social.msdn.microsoft.com/Forums/en/vsx/thread/6b688f8c-1008-4796-a551-cbdeed506c05allenmpcxhttp://social.msdn.microsoft.com/Profile/en-US/?user=allenmpcxGettings controls contained on form from DTE object<p>Right now I have code to obtain a DTE from a progID:<br/><span style="font-size:x-small"><br/></span></p> <pre lang="x-c#">public const string VS2008_ProgID = &quot;VisualStudio.DTE.9.0&quot;; public static object GetVisualStudioObject() { Type typeFromProgID = Type.GetTypeFromProgID(VS2008_ProgID); return Activator.CreateInstance(typeFromProgID); }</pre> <p>I navigate through the solution getting the projects, and then getting the project items. When I come across a project item that could be a control:</p> <pre lang="x-c#">ProjectItem.Object is VSLangProj.VSProjectItem &amp;&amp; ProjectItem.Name.EndsWith(&quot;.cs&quot;)</pre> <p>I open the primary window:<span style="font-size:x-small"><span style="font-size:x-small"> </span></span></p> <pre lang="x-c#">ProjectItem.Open(EnvDTE.Constants.vsViewKindPrimary);</pre> <p>Then, I obtain the designer host:</p> <pre lang="x-c#">IDesignerHost host = ProjectItem.Document.ActiveWindow.Object as IDesignerHost; host.Activate();</pre> <p>Then, I cast the root component to a control:</p> <pre lang="x-c#">Control control = host.RootComponent as Control;</pre> <p>This all works fine without error, but when I try to access Control.Controls.Count, I get the following exception:<br/><br/># An error occured (components): System.Runtime.Remoting.RemotingException: This<br/> remoting proxy has no channel sink which means either the server has no registe<br/>red server channels that are listening, or this application has no suitable clie<br/>nt channel to talk to the server.<br/>   at System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke(IMethodCallMe<br/>ssage reqMcmMsg, Boolean useDispatchMessage, Int32 callType)<br/>   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage reqMsg)<br/>   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgDa<br/>ta, Int32 type)<br/>   at System.Windows.Forms.Control.get_Controls()<br/><br/>How could I go about listing the controls that a Form or UserControl has on it?</p>Mon, 23 Nov 2009 23:37:23 Z2009-11-25T11:44:51Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/cb6dc6cf-dca2-4340-aaba-9a0ce3f5f8d4http://social.msdn.microsoft.com/Forums/en/vsx/thread/cb6dc6cf-dca2-4340-aaba-9a0ce3f5f8d4Vivek E, Guptahttp://social.msdn.microsoft.com/Profile/en-US/?user=Vivek%20E%2c%20Gupta Error on trying to create add-in in VS 2008<div style="color:Black;background-color:White"> <pre> e&lt;pre&gt; Hi, <span>I have been trying to create a plugin in Visual studio 2008 in C#. In this plugin I am trying to create a Tol Window with a user control.The user control is present in the same solution as that of add-in.Every time I try to execute the addin, I get the error , 'The addin supporting this command could not be loaded'. On reading previous similar posts on this issue, I understand that such issues occur when the required dll or assembly is not found.So I executed the command devenv.exe /resetaddin also,but still no use.Please tell me what else can be the issue or what else can I debug to solve the same. Please find the code for your reference._</span> Regards, Vivek Gupta </pre> </div> <span>_</span> lse if (connectMode == ext_ConnectMode.ext_cm_AfterStartup) { #region Load Tool Window object programmableObject = null; string guidString = &quot;{35AB1E0D-9016-44c6-A284-6083C91D12CA}&quot;; Windows2 windows2 = (Windows2)_applicationObject.Windows; Assembly asm = Assembly.GetExecutingAssembly(); toolWindow = windows2.CreateToolWindow2(_addInInstance, asm.Location, &quot;ToolWindowArticle.ToolWindowControl&quot;, &quot;Pirate Window&quot;, guidString, ref programmableObject); toolWindow.Visible = true; toolWindowControl = (ToolWindowControl)toolWindow.Object; toolWindowControl.ApplicationObject = _applicationObject; #endregion } <span>_</span>Mon, 23 Nov 2009 05:25:37 Z2009-11-25T11:33:37Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/9f47ebeb-1711-4e39-abe7-32314c879902http://social.msdn.microsoft.com/Forums/en/vsx/thread/9f47ebeb-1711-4e39-abe7-32314c879902JustNodhttp://social.msdn.microsoft.com/Profile/en-US/?user=JustNodEnumerate target file system of setup/deployment project using DTECan I use the DTE object to enumerate and manipulate the target file system of a Setup and Deployment package? It would appear that the files referenced by the target file system are not part of the ProjectItems collection and, although I can access the File System window, there don't seem to be any objects, properties or collections that expose what I need.<br/><br/>I am using Visual Studio 2005.<br/>Tue, 24 Nov 2009 09:44:00 Z2009-11-25T11:27:03Zhttp://social.msdn.microsoft.com/Forums/en/vsx/thread/f82b8f3b-9616-464f-9662-64dd08bdfc26http://social.msdn.microsoft.com/Forums/en/vsx/thread/f82b8f3b-9616-464f-9662-64dd08bdfc26creative_cathttp://social.msdn.microsoft.com/Profile/en-US/?user=creative_catCustomizing the project settings pageHi,<br/><br/>Does anyone know of a sample or code snippet that allows me to customize the project settings page for a custom project type.<br/><br/>By default, all the public properties defined in my property page (derived from the MPF SettingsPage class) and bound to a property grid.<br/><br/>I need to display a custom control with textboxes and such in my SettingsPage that allows user to edit project specific properties using the custom control rather than through the property grid.  (Similar to the C# project settings pages)<br/><br/>Any pointers to a samples or code snippets that telsl me how to do this is most welcome,<br/><br/>Thanks,<br/>CCTue, 24 Nov 2009 04:49:34 Z2009-11-25T11:25:53Z