|
-
February 9th, 2007, 07:05 AM
#1
Avoiding the display of an image on treeview node
Hello,
i work under the following environment: WinXP, CSharpDevelop under .NET 2.0.
Problem description:
To simplify it, I'm trying to make a single node on a treeView. The treeview is linked to an imageList which contains some images. I wanted to show the treeview node without images. It seems not to be working in design time and in runtime.
The code is as follow:
Code:
node = new TreeNode(strValue);
node.Tag = "BTN" + intNextNode.ToString()+";0;;";
tV.Nodes.Add(node);
node.ImageIndex = -2;
node.SelectedImageIndex = -2;
The result is always the same, it shows the first item of the imageList when nothing is selected and no image when the node is selected.
How do i do to have this node without images?
Thx for your patience.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|