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.