473,503 Members | 4,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tree Node issues with ImageIndex property

db
Hello,

I am having some problems with tree nodes. This is what's happening:

1) I create the node assign imageindex X
2) I change the imageindex of the Treenode to Y
3) TreeNode's icon looks different
4) I click on the node and the icon reverts to X
5) I click away from the node and the icon reverts to Y

Does anyone know why this is happening and any work aroudns? I've tried
saving the imageindex in the TreeView.BeforeSelect (...) and reassigning it
AfterSelect , but this didnt work either.

Thanks in advance,
Don
Nov 16 '05 #1
1 2124
Hi Don,

"db" <db@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Hello,

I am having some problems with tree nodes. This is what's happening:

1) I create the node assign imageindex X
2) I change the imageindex of the Treenode to Y
3) TreeNode's icon looks different
4) I click on the node and the icon reverts to X
5) I click away from the node and the icon reverts to Y

Does anyone know why this is happening and any work aroudns? I've tried
saving the imageindex in the TreeView.BeforeSelect (...) and reassigning it AfterSelect , but this didnt work either.

Thanks in advance,
Don


Set the SelectedImageIndex of the node to the appropriate index value.

Regards,
Daniel
Nov 16 '05 #2

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

Similar topics

4
1970
by: Robin Tucker | last post by:
Hi, I'm currently implementing a database with a tree structure in a table. The nodes in the tree are stored as records with a column called "Parent". The root of the tree has a "NULL" parent....
4
1868
by: (Pete Cresswell) | last post by:
I'm getting nodes into the thing, but when the dust settles, only the root-level nodes are visible. I know they're there because .Nodes.Count gives the right number.\ But I don't really...
9
5471
by: James Geurts | last post by:
Hey all... I posted this in the vs.net ide group too, but people are not answering, so I figured that it might be more appropriate here. I'm not sure if I'm adding a designer to my code properly. ...
8
14240
by: Don Wash | last post by:
Hi There! I'm using VB.NET to create a TreeView application and unfortunately I could not find "Key" property in Node items of the TreeView. We used to have "Key" property in TreeView node...
1
3567
by: Director - Minvent | last post by:
Hi, I am trying to work out the easiest way to add some things to a treeview. I have got a list of the priviliged names for each of the computers e.g. ...
2
4085
by: john wright | last post by:
I have a stored procedure that returns a dataset. I want this dataset to fill a tree view. Here is the Stored Procedure Query SELECT Product.Product_#, Product.Part_Number, Status.Status,...
4
2157
by: BenCoo | last post by:
Hello, In a Binary Search Tree I get the error : Object must be of type String if I run the form only with the "Dim bstLidnummer As New BinarySearchTree" it works fine. Thanks for any...
0
1712
by: teju | last post by:
Hi all, I am trying to populate tree view from the database. Till two levels i can populate it fine but when it reaches third level it doesn't expand. Below is the code, it has been taken from the...
1
3673
by: =?Utf-8?B?RGFycmVuIChVSyk=?= | last post by:
I have very limited knowledge of VB and am trying to convert this to list Just OU then when selected fill a text box with the full DN. I know this is a big ask but can anyone help. I know i need...
0
7194
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
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
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...
1
6976
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...
0
5566
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
4993
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
4666
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
1495
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
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.