[Help...] A problem with treeview.
I have a treeview which have a listimage. And it has imageselectindex property (image is yellow ball)
My problem is : When i click any node, the image of that node shows imageselectindex . I only want thirth child node will show it. I dont want when i click at first node (rootnode) or child of roodnode , the yellow ballon shows.
http://picshome.com/en/download.php?id=695C1FCA1
Re: [Help...] A problem with treeview.
You might need to stop using the SelectedImageIndex property, and instead handle the AfterSelect method, and "manually" set the image of the selected node, and reset the image of the previously selected node, depending on its "level" in the tree.
Re: [Help...] A problem with treeview.
Quote:
Originally Posted by
Atheist
You might need to stop using the SelectedImageIndex property, and instead handle the AfterSelect method, and "manually" set the image of the selected node, and reset the image of the previously selected node, depending on its "level" in the tree.
I though same you. But i cant stop this propety .
There is not none option for SelectedImageIndex. I used :
Code:
TreeView1.SelectedNode.ImageIndex = Nothing
But it didnt work. Please tell me.
Re: [Help...] A problem with treeview.
I believe -1 would be the default value for that property.
Re: [Help...] A problem with treeview.
Quote:
Originally Posted by
Atheist
I believe -1 would be the default value for that property.
All values of that property is a list of image of listimage.
Re: [Help...] A problem with treeview.
What do you mean? You mentioned the SelectedImageIndex/ImageIndex properties, which are Integer properties.
Re: [Help...] A problem with treeview.
Quote:
Originally Posted by
Atheist
What do you mean? You mentioned the SelectedImageIndex/ImageIndex properties, which are Integer properties.
Yes. But values of it is a list of images of listimage.
Re: [Help...] A problem with treeview.
How can the values of an Integer property be anything else than integers? I'm getting confused... Are you thinking about the ImageList property?
Re: [Help...] A problem with treeview.
Quote:
Originally Posted by
Atheist
How can the values of an Integer property be anything else than integers? I'm getting confused... Are you thinking about the ImageList property?
You try create a Imagelist named Imagelist1 and add some picture in it. Then You choose Imagelist treeview 's property is Imagelist1 '.
Then all images of Imagelist1 will load to Selectedimageindex property.
Please try and help me.
Re: [Help...] A problem with treeview.
Any body met same problem with me. HELP ME PLEASE.