Results 1 to 3 of 3

Thread: I never used a treeview

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    I never used a treeview

    OK as you can read and see i have never used a treeview. I got this far:
    Code:
    Private Sub Form_Load()
    
    VBtv.ImageList = ImageList1
    VBtv.Nodes.Add , , , "VB Listing", ImageList1.ListImages(1).Key
    
    
    
    End Sub
    
    Private Sub VBtv_Click()
    MsgBox VBtv.SelectedItem.Text
    End Sub
    but how do i add a node in the first not like a child node ? and how would i know whats selected ? I i select the first child node how do i know ?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    ok i got it
    Code:
    Private Sub Form_Load()
    
    VBtv.ImageList = ImageList1
    VBtv.Nodes.Add , , , "VB Listing " & i, ImageList1.ListImages(1).Key
    VBtv.Nodes.Add 1, tvwChild, , "VB Listing " & i, ImageList1.ListImages(1).Key
    
    End Sub
    
    Private Sub VBtv_Click()
    MsgBox VBtv.SelectedItem.Index & ". " & VBtv.SelectedItem.Text
    End Sub
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  3. #3

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