Hi ,
I am a VC++ guy but I am new to VB and I am working on a TreeView1
control .
I have to change the icon when I rename the tree node . Can anyone
tell me how to acheive the same . In VC++ I would have used some
Get/Set method . But I can not figure how to do that with the TreeView
control in VB 6.
I have the MSDN .NET, so it speaks more about .NET stuff, so it
would be really helpful, if someone can give me some pointers or
references to URL' s regarding this .
Thanks in advance ,
Sujay
Steve Gerrard - 27 Feb 2005 16:50 GMT
| Hi ,
|
[quoted text clipped - 5 lines]
| Get/Set method . But I can not figure how to do that with the TreeView
| control in VB 6.
The icons for a treeview come from an ImageList control. You can refer
to them by their index number, or by their key property, which is a
string. So, if you wanted to change to image #4, and you had set its key
to "icon4", you could write either of these:
Node.Image = 4
' or
Node.Image = "icon4"