Search the web
Sign In
New User? Sign Up
vsnetaddin · Visual Studio.NET Add-ins
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 831 - 860 of 3878   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
831
I have code that looks something like this: UIHierarchyItem item; //... ProjectItem pitem = item.Object as ProjectItem; if ( pitem != null && pitem.FileCount >...
Arild Fines
arild_fines
Offline Send Email
Apr 2, 2003
12:55 am
832
I'm not sure why you're seeing different behavior based on type of item, but I can point out one problem: collections are indexed starting at 1, not 0. This...
Kevin Murphy
kmurphy_97140
Offline Send Email
Apr 2, 2003
4:23 pm
833
... Indeed you are correct(Collections starting at 1? Who has heard of such a thing...?;)). Strange that it did work for most items though. However, changing...
Arild Fines
arild_fines
Offline Send Email
Apr 2, 2003
6:05 pm
834
hi, Because I want to use some customized control properties, I make an addin as same as "Visual Studio .Net Properties Window". But I've met such a problem,I...
tonyshenqi
Offline Send Email
Apr 4, 2003
10:08 am
835
Hi folks, I have (roughly) the following code: VCCodeModelPtr vcCodeModel; // already filled in with a valid value VCCodeElementsPtr classes =...
Kevin Murphy
kmurphy_97140
Offline Send Email
Apr 4, 2003
6:40 pm
836
Is it possible to add a single control from an .NET assembly that contains multiple controls to the toolbox? I can add all the controls no problem by just...
Kollen Glynn
kg_groups
Offline Send Email
Apr 4, 2003
8:52 pm
837
Hi All, I am a newbee to VS.Net Add-In development. I need solutions to some of the problems I have. 1. How to find out the current caret position and pop up a...
nilakanta_m
Offline Send Email
Apr 7, 2003
4:43 am
838
I am building an addin that requires the user enters a connection string to a database. Is there anyway I can reuse the connection string builders that the...
Christian Sepulveda
csepulv
Offline Send Email
Apr 8, 2003
1:55 pm
839
... I haven't tried this, but you could try resorting to good old SDK programming. Try calling GetCursorPos to get the current position in screen coordinates,...
Kevin Murphy
kmurphy_97140
Offline Send Email
Apr 8, 2003
4:26 pm
840
I have code in my QueryStatus(for a command thats on the Solution, Project and Item commandbars) that looks somewhat like this: foreach( SelectedItem item in...
Arild Fines
arild_fines
Offline Send Email
Apr 8, 2003
5:35 pm
841
... The right click popup of what? If you are talking about the solution explorer, you can add your commands to the Solution, Project, Item and Folder command...
arild_fines
Offline Send Email
Apr 8, 2003
5:38 pm
842
A quick and dirty test showed that I'm not getting the same problem. I'm wondering if 'this.dte.SelectedItems' is getting reevaluated every pass through the...
Kevin Murphy
kmurphy_97140
Offline Send Email
Apr 8, 2003
6:18 pm
843
Is there a well known macro that references the debug working directory in VS2003? Table 2-3 in Craig's book (pgs 49-50) lists a bunch but not the this one. ...
Kollen Glynn
kg_groups
Offline Send Email
Apr 8, 2003
6:24 pm
844
... That is weird. It is very consistent here. ... No, that didn't work either. This works, though: SelectedItems items = this.dte.SelectedItems; for( int i =...
Arild Fines
arild_fines
Offline Send Email
Apr 8, 2003
7:15 pm
845
Sorry about the confusion - I was attempting to translate my code from C++ to C#, and ended up masking the problem. The actual code I used to get the selected...
Kevin Murphy
kmurphy_97140
Offline Send Email
Apr 8, 2003
7:53 pm
846
Well, it looks like if the node is the solution node, then both item.Project and item.ProjectItem are null. However, both can be null for various other things...
Kevin Murphy
kmurphy_97140
Offline Send Email
Apr 8, 2003
8:20 pm
847
... That's not really a problem for me right now, since I have no menu items for the References folder. Thanks! -- Arild...
Arild Fines
arild_fines
Offline Send Email
Apr 8, 2003
9:38 pm
848
This is a known bug. If I remember well, the workaround was to avoid foreach and use a counter to iterate. Carlos Quintero ... De: Arild Fines...
Quintero Vivar, Carlo...
carlos_j_qui...
Offline Send Email
Apr 9, 2003
7:20 am
849
hi tonyshengi, if you want to use "Visual Studio .Net Properties Window" with your own customized properties, you can do easily. You can find out...
suzan gunay
suzangunay
Offline Send Email
Apr 9, 2003
7:24 am
850
While you can use the SelectedItems object to find the items selected within the solution explorer, probably the best way to do it is to use the UIHierarchy...
Craig Skibo
craigs_ms
Offline Send Email
Apr 9, 2003
6:52 pm
851
For #2, it is actually much easier than that. If you want to add a command to an existing context menu, then you would use the Office command bar object model...
Craig Skibo
craigs_ms
Offline Send Email
Apr 9, 2003
7:29 pm
852
Currently, there is no way to do this other than to split the controls into seperate DLLs. We are working on a way of doing this better in a future version. ...
Craig Skibo
craigs_ms
Offline Send Email
Apr 9, 2003
7:30 pm
853
Looking through the code model sources, VC has for the custom HRESULT value 8ce00005 E_CM_UNDONE. Which, presumably means E_NOTIMPL. Craig Inside Visual Studio...
Craig Skibo
craigs_ms
Offline Send Email
Apr 9, 2003
7:36 pm
854
The object model for Setup Projects and Help projects is not complete, are not fully supported, and are not documented as usable. You may be able to do some...
Craig Skibo
craigs_ms
Offline Send Email
Apr 9, 2003
7:42 pm
855
... I tried something like this: this.solutionItem = this.uiHierarchy.UIHierarchyItems.Item(1); if ( this.solutionItem.Object is EnvDTE.Solution ) ...
Arild Fines
arild_fines
Offline Send Email
Apr 9, 2003
8:36 pm
856
I'm so close to getting everything working, and about the only thing left for me to figure out is how to modify the resources. I saw the VCResourceHelper...
Kevin Murphy
kmurphy_97140
Offline Send Email
Apr 9, 2003
9:31 pm
857
Looking at the code, UIHierarchyItem.Object returns the UIHierarchyItem for that node if the node is for the Solution. In fact, for non-Project or ProjectItems...
Craig Skibo
craigs_ms
Offline Send Email
Apr 9, 2003
10:18 pm
858
I have added a new tab with a bunch of controls but the same code that worked in VS2002 isn't working for me in VS2003. It executes fine and actually adds the...
Kollen Glynn
kg_groups
Offline Send Email
Apr 9, 2003
11:38 pm
859
... solution ... I wanted to add the command to the right-click popup of the code- editor....
nilakanta_m
Offline Send Email
Apr 10, 2003
3:27 am
860
Hmmm, turns out it's adding it to VS2002 (I am automating from an external exe) and running VS2002 and VS2003 side by side. The plot thickens though... upon...
Kollen Glynn
kg_groups
Offline Send Email
Apr 10, 2003
6:20 pm
Messages 831 - 860 of 3878   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help