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

Tree control under Visual Basic

P: n/a
Hello everybody, could anyone paste me a snippet, or part of the code
for working with trees, it's a control I need to figure out how to use
it. Thanks

Gerardo
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Concentrate on the Nodes property.

You create and add nodes and each node can have nodes.

Then you use recursion to traverse it.

HTH,
Shane
"Gerardo" <et******@arnet.com.ar> wrote in message
news:Om*************@TK2MSFTNGP10.phx.gbl...
Hello everybody, could anyone paste me a snippet, or part of the code
for working with trees, it's a control I need to figure out how to use
it. Thanks

Gerardo

Nov 20 '05 #2

P: n/a
a little code...
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load

Dim n As New TreeNode("Shane")

tvw.Nodes.Add(n)

n.Nodes.Add("Bob")

End Sub

"Gerardo" <et******@arnet.com.ar> wrote in message
news:Om*************@TK2MSFTNGP10.phx.gbl...
Hello everybody, could anyone paste me a snippet, or part of the code
for working with trees, it's a control I need to figure out how to use
it. Thanks

Gerardo

Nov 20 '05 #3

P: n/a
SStory wrote:
a little code...
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load

Dim n As New TreeNode("Shane")

tvw.Nodes.Add(n)

n.Nodes.Add("Bob")

End Sub


Hey man thank you a lot, that's what I was looking for.
Nov 20 '05 #4

P: n/a
No prob.
It's a cool control... just takes a little different coding.
"Gerardo" <et******@arnet.com.ar> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
SStory wrote:
a little code...
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim n As New TreeNode("Shane")

tvw.Nodes.Add(n)

n.Nodes.Add("Bob")

End Sub


Hey man thank you a lot, that's what I was looking for.

Nov 20 '05 #5

P: n/a
No prob.
It's a cool control... just takes a little different coding.
"Gerardo" <et******@arnet.com.ar> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
SStory wrote:
a little code...
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim n As New TreeNode("Shane")

tvw.Nodes.Add(n)

n.Nodes.Add("Bob")

End Sub


Hey man thank you a lot, that's what I was looking for.

Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.