DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: ListView/TreeView

  1. #1
    Arjen Guest

    ListView/TreeView


    Hiya, how can I get icons in a listview or a treeview?

    Greetz Arjen

  2. #2
    Viji Guest

    Re: ListView/TreeView


    "Arjen" <aros@home.nl> wrote:
    >
    >Hiya, how can I get icons in a listview or a treeview?
    >
    >Greetz Arjen


    here I have attached the code, how to set the Image to treeview and how to
    read the pirticular selected node's image from the tree view. I thing this
    will help to you.....

    Viji

    '--------------------------------------------------------------------------

    Private Sub Form_Load()
    Dim oTItem As Node
    'Set the image to Tree View
    Set oTItem = TreeView1.Nodes.Add(, , "k1", "sample_01", 1, 1)
    Set oTItem = TreeView1.Nodes.Add(, , "k2", "sample_02", 2, 2)

    End Sub

    Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
    'Get The Image/icon from the selected treenode
    Me.Icon = ImageList1.ListImages(Node.Image).Picture
    End Sub
    '--------------------------------------------------------------------------

  3. #3
    Larry Rebich Guest

    Re: ListView/TreeView

    Arjen,

    Some months ago I wrote a tip of the month that I call 'ListView Basics'.
    Link to http://www.buygold.net/tips then look for the July 2000 tip of the
    month. A sample program is provided that shows how to add items, including
    icons.

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips

    Please:
    No personal e-mail questions :-)


    "Arjen" <aros@home.nl> wrote in message news:3b266059$1@news.devx.com...
    >
    > Hiya, how can I get icons in a listview or a treeview?
    >
    > Greetz Arjen




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center