[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Associate Image with Treview Node

I have an Imagelist defined on the MDI child form which has my treeview control.  The name of the imagelist is Imaglist1 and the keys of the 6 images in the list are Img1, Img2 .... Img6.

I associated the Image list with the treeview in the treeview properties.

I am now adding node to my tree and want to associate a specific image with each level.

To add my first node I am using:
         TApickTree.Nodes.Add , , SiteTag, "Site - " & Trim(SitesRS!SiteName), "Img1"

I am not getting an error or any exceptions but I am not gettingmy image either.  Is my syntax wrong?
0
mlcktmguy
Asked:
mlcktmguy
1 Solution
 
wraith821Commented:
make sure TApickTree.Style = tvwTreelinesPlusMinusPictureText
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now