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;
Please refer to my attachment for better info.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
Thanks




Reply With Quote