Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CHANGING THE FORM ICONS WITHIN TREE CONTROL 1

Status
Not open for further replies.

barry2004

Technical User
Oct 13, 2004
42
GB
Hi guys, anyone know of a way of changing the form icons within a Tree Control Form?. For those who know about Tree Controls, for each item you add to your list there appears a form icon to the side of it, it's those icons that i want to change.
For example download sample form at the following location:

Thanks
 
SORRY THAT SHOULD READ "FOLDER" ICONS AND NOT "FORM" ICON.
 
The first thing you need to do is to insert the ActiveX control Microsoft ImageControl onto your form. Then add the images (icons) you want to include on your tree within the image control. In the property sheet of the treeview object, enter the name of the image control in the image list property. Then, when you build your tree, set the image property of the node to equal the index number assigned to the image via the image control
 
THANK YOU SO MUCH FANCYPRAIRIE, ALREADY HALF WAY THERE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top