Results 1 to 2 of 2

Thread: Treeview Question -

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254

    Post

    Hello,
    I am trying to associate the nodes of a trreview with the returned recordset of a SQL query. However during the form load I get the following when tring to set the image property of the treeview control.

    "Imagelaist must be set before it can be used"

    Code Below
    ==========

    With tvwDB
    .Sorted = True
    Set mnode = .Nodes.Add()
    .LabelEdit = False
    .LineStyle = tvwRootLines
    End With

    With mnode ' Add first node.
    .Image = "closed"
    .Text = "Publishers"
    .Tag = "Biblio"

    End With

    However the example with biblio.mdb in VB examples is EXACTLY the same, and works without any problem.

    Any help greatly appreciated.

    Thanks

    Tony.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Have you selected the Imagelist in the Treeview's property pages?

    ------------------
    Mark Sreeves
    Analyst Programmer

    Mark.Sreeves@Softlab.co.uk
    A BMW Group Company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width