Results 1 to 7 of 7

Thread: [RESOLVE] DAdd TreeView Node On The Fly

Threaded View

  1. #1

    Thread Starter
    Addicted Member g-mie's Avatar
    Join Date
    Jan 2004
    Location
    EarTh
    Posts
    212

    Resolved [RESOLVE] DAdd TreeView Node On The Fly

    Hello Gurus...

    I want to add TreeView Node on the fly. But error Invalid Object was occur.
    How to solve this error?
    Or any other idea?

    Here my code;
    Code:
    Private Sub Command1_Click()
        
        TreeView1.Nodes.Add txtParentKey, tvwChild, txtChildKey, txtChildText
        'TreeView1.Nodes.Add , , txtChildKey, txtChildText   '<--no error for this
    
    End Sub
    
    Private Sub Form_Load()
        TreeView1.Nodes.Add , , "a", "aaa"
        TreeView1.Nodes.Add "a", tvwChild, "b", "bbb"
        TreeView1.Nodes.Add "b", tvwChild, "c", "ccc"
        TreeView1.Nodes.Add "c", tvwChild, "d", "ddd"
    End Sub
    Please refer to my attachment for better info.

    Thanks
    Attached Files Attached Files
    Last edited by g-mie; Nov 5th, 2007 at 08:34 AM.

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