By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,162 Members | 1,486 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,162 IT Pros & Developers. It's quick & easy.

invoke problem vith treeview

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dzemo,

What do you mean by
Can i add treenode instead of
TreeNode.text("BLA") in upper code?


What the code you have posted is doing IS adding a TreeNode with the Text as
"BLA"

Sorry if I have misunderstood.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.