473,508 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change treeview icon when node expanded

1 New Member
Hi everyone. I have just joined and this is my first question.

I program in C# and want to change the node icon in a treeview control when the node is expanded or collapsed. If someone could give me a brief explanation of how to do this I would very much appreciate it.

I know it will be one of those very obvious things, but I can't find a reference to it anywhere

Regards

John
Sep 4 '07 #1
0 1159

Sign in to post your reply or Sign up for a free account.

Similar topics

6
4913
by: L.M | last post by:
Hello, I knew how to use the treeview under VB6. After migrating to .NET, well, I'm lost. I try to add a new node, either to the same level or as a child to a selected node in the treeview....
5
3108
by: Juanjo | last post by:
I need to know how to maintain de status (nodes expanded and selected) of a treeview in a master page. I have a master page with a treeview. I have a default page, when the treeview is expanded...
3
11597
by: John | last post by:
I have overridden the default DrawNode (OwnerDrawText mode) to allow me to draw an extra icon at the front of the text block, while still using the built-in icon list for another icon. The problem...
7
9672
by: tman | last post by:
I am generating a very large tree list in my program and while it's performance is great once loaded it takes a really long time to load. I create a root TreeNode "offline" and go through the...
0
313
by: JJ | last post by:
I need to rebuild/redraw a treeview, following some user actions on the files/folders that the treeview is displaying (renaming or adding/deleting folders/files). When these actions take place I...
1
1473
by: wesdev | last post by:
I have a .htm page which has the IE treeview - to be used client side only. <treeview:TREEVIEW id="UnitTreeView" systemImagesPath="webctrl_client/1_0/treeimages/" selectExpands="true"...
0
863
by: wesdev | last post by:
I have a .htm page which has the IE treeview - to be used client side only. <treeview:TREEVIEW id="UnitTreeView" systemImagesPath="webctrl_client/1_0/treeimages/" selectExpands="true"...
0
1232
by: vincent90152900 | last post by:
http://vincent90152900.myweb.hinet.net/test.htm Following is my codes and I don’t know how to make the line appeared? <asp:TreeView ID="TreeView1" runat="server"...
4
13241
by: RP | last post by:
I have a TreeView control. When a user clicks on a node, it must change color. I did: TreeView1.SelectedNode.ForeColor = colors.Blue; However, it must change the other nodes color to black,...
0
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.