473,387 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C# VS Add-In: Modifying Solution Explorer Icons and/or Text

Hello everyone,

I'm working on a VS .NET add-in that will allow developers to use
Subversion software from within the IDE (much like Source Safe).
Ideally, I would like for my plug-in to be able to modify icons that are
displayed in Solution Explorer based on the file's status.

So far I've been able to retrieve data from Solution Explorer using the
UIHierarchy and related objects. Those give me access to the contents,
but not to the actual presentation. So basically, in my add-in I can
browse through the Solution Explorer and do things like save, delete,
etc... But when it comes to actually being able to modify what is
displayed on it, I can't seem to be able to do this.

Does anyone have any clue as to how I might be able to gain access to
the visual aspects of the solution explorer, and do things like putting
overlays over the current icons? If modifying the icons is too
difficult, then perhaps there is a way I could modify the text? So for
example, if I have a file in my Solution Explorer called Connect.cs, and
my version control plug-in is running, I could just change the actual
text of the file to read something like "Connect.cs [Conflict]" if that
file is in conflict state.

Any help on this would be greatly appreciated.

- Max
Nov 17 '05 #1
1 2209
Max Khitrov <ma*@mxserve.net> wrote:
I'm working on a VS .NET add-in that will allow developers to use
Subversion software from within the IDE (much like Source Safe).
Ideally, I would like for my plug-in to be able to modify icons that are
displayed in Solution Explorer based on the file's status.

So far I've been able to retrieve data from Solution Explorer using the
UIHierarchy and related objects. Those give me access to the contents,
but not to the actual presentation. So basically, in my add-in I can
browse through the Solution Explorer and do things like save, delete,
etc... But when it comes to actually being able to modify what is
displayed on it, I can't seem to be able to do this.

Does anyone have any clue as to how I might be able to gain access to
the visual aspects of the solution explorer, and do things like putting
overlays over the current icons? If modifying the icons is too
difficult, then perhaps there is a way I could modify the text? So for
example, if I have a file in my Solution Explorer called Connect.cs, and
my version control plug-in is running, I could just change the actual
text of the file to read something like "Connect.cs [Conflict]" if that
file is in conflict state.

Any help on this would be greatly appreciated.


I'd suggest having a look at an existing Subversion add-in such as
ankhsvn: http://ankhsvn.tigris.org/

(You might also consider either contributing to that project or a
similar one rather than re-inventing the wheel - but that depends on
your reasons for doing it. If it's for the investigation side of things
as much as anything else, it doesn't matter at all.)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: dlx_son | last post by:
Here is the code so far <form name="thisform"> <h3>Enter time to add to or subtract from:</h3> (If not entered, current time will be used)<br> Day: <input name="d1" alt="Day of month"...
3
by: Dean Slindee | last post by:
Is there a way to replace the commented out parameter add syntax with a single line of code, like the .Parameter.Add("@Letter"...) line below (which does not work)? 'Dim prmLetter As New...
4
by: Maarten | last post by:
i have the folowing code to setup my datagrid collumns Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load gridsetup() end sub
8
by: Yuk Tang | last post by:
I am tearing my hair out over this, since I can't see what I'm doing wrong (duh, if I knew, I wouldn't be asking the question). I am adding Field items to a Field Collection, but for some reason...
12
by: David | last post by:
Below are three classes for a console application. If put into three separate files, the sub main() will launch multiple threads adding and removing the same value. At the end we expect the value...
2
oll3i
by: oll3i | last post by:
public class Kwiaty { private List<Kwiat> lista_kwiatow = new ArrayList<Kwiat>(); RozaCzerwona roza_czerwona = new RozaCzerwona(); RozaBiala roza_biala = new RozaBiala(); RozaZolta roza_zolta...
1
by: Sri Nanduri | last post by:
Hi , I am new to JS. Please help me to resolve my issue. 1.When the form loads there are two DropDown boxes and a ADD button. 2.When I click the add button it will add two DropDown boxes and a add...
0
by: anureddy | last post by:
help me how to add datagridview columns to another table,using windowsapplications. and set the displaymember and value member datagridviewcomboboxcolumn. i used this below code but that not...
3
by: guilherme21922 | last post by:
I created a new dropdownlist with the event selectedIndexChanged, but he never dispared!! what i am doing wrong? Thanks for (int i = 0; i < 2; i++) ...
2
by: Question123 | last post by:
<root> <Element> <add key="1" value="1"/> <add key="2" value="2"/> <add key="3" value="3"/> <add key="4" value="4"/> </Element> <Items>
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.