|
-
Jul 19th, 2009, 12:37 PM
#1
Thread Starter
Fanatic Member
[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.
Last edited by manhit45; Jul 19th, 2009 at 12:43 PM.
-
Jul 19th, 2009, 12:58 PM
#2
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.
-
Jul 19th, 2009, 01:04 PM
#3
Thread Starter
Fanatic Member
Re: [Help...] A problem with treeview.
 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.
-
Jul 19th, 2009, 01:11 PM
#4
Re: [Help...] A problem with treeview.
I believe -1 would be the default value for that property.
-
Jul 19th, 2009, 01:13 PM
#5
Thread Starter
Fanatic Member
Re: [Help...] A problem with treeview.
 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.
-
Jul 19th, 2009, 01:15 PM
#6
Re: [Help...] A problem with treeview.
What do you mean? You mentioned the SelectedImageIndex/ImageIndex properties, which are Integer properties.
-
Jul 19th, 2009, 01:20 PM
#7
Thread Starter
Fanatic Member
Re: [Help...] A problem with treeview.
 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.
-
Jul 19th, 2009, 01:23 PM
#8
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?
-
Jul 19th, 2009, 01:29 PM
#9
Thread Starter
Fanatic Member
Re: [Help...] A problem with treeview.
 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.
-
Jul 19th, 2009, 08:52 PM
#10
Thread Starter
Fanatic Member
Re: [Help...] A problem with treeview.
Any body met same problem with me. HELP ME PLEASE.
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
|