D
Dzemo
I got this code to add TreeNode from my new Thread to TreeView
///
Private Delegate Function AddDelegate( ByVal text As String ) As TreeNode
Private Sub DoWork()
Me.TreeView1.Invoke( New AddDelegate(AddressOf Me.TreeView1.Nodes.Add),
New Object() {"Bla"} )
End Sub
Dim th As New Thread(AddressOf DoWork)
th.Start()
///
But I have TreeNode that have sub nodes. Can i add treenode instead of
TreeNode.text("BLA") in upper code? Any examples?
tnx
///
Private Delegate Function AddDelegate( ByVal text As String ) As TreeNode
Private Sub DoWork()
Me.TreeView1.Invoke( New AddDelegate(AddressOf Me.TreeView1.Nodes.Add),
New Object() {"Bla"} )
End Sub
Dim th As New Thread(AddressOf DoWork)
th.Start()
///
But I have TreeNode that have sub nodes. Can i add treenode instead of
TreeNode.text("BLA") in upper code? Any examples?
tnx