Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / February 2005



Tip: Looking for answers? Try searching our database.

Treeview - setting new icons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ghosh.sujay@gmail.com - 27 Feb 2005 11:50 GMT
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"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.