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 5 1179
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******** *****@TK2MSFTNG P10.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
a little code...
Private Sub Form1_Load(ByVa l sender As Object, ByVal e As System.EventArg s)
Handles MyBase.Load
Dim n As New TreeNode("Shane ")
tvw.Nodes.Add(n )
n.Nodes.Add("Bo b")
End Sub
"Gerardo" <et******@arnet .com.ar> wrote in message
news:Om******** *****@TK2MSFTNG P10.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
SStory wrote: a little code... Private Sub Form1_Load(ByVa l sender As Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim n As New TreeNode("Shane ")
tvw.Nodes.Add(n )
n.Nodes.Add("Bo b")
End Sub
Hey man thank you a lot, that's what I was looking for.
No prob.
It's a cool control... just takes a little different coding.
"Gerardo" <et******@arnet .com.ar> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . SStory wrote:
a little code... Private Sub Form1_Load(ByVa l sender As Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim n As New TreeNode("Shane ")
tvw.Nodes.Add(n )
n.Nodes.Add("Bo b")
End Sub
Hey man thank you a lot, that's what I was looking for.
No prob.
It's a cool control... just takes a little different coding.
"Gerardo" <et******@arnet .com.ar> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . SStory wrote:
a little code... Private Sub Form1_Load(ByVa l sender As Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim n As New TreeNode("Shane ")
tvw.Nodes.Add(n )
n.Nodes.Add("Bo b")
End Sub
Hey man thank you a lot, that's what I was looking for. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Randy Birch |
last post by:
Reposted as the original is reported as deleted from the server.
re: MSComCtl Listview control cashes after installing VB6/VS6 SP6
I have been advised that this problem has been reproduced and a hotfix has
been prepared. The supporting KB article and hotfix download link have yet
to be posted, but I can provide you with the following information for those
requiring an immediate fix:
|
by: Adalbert |
last post by:
First, I'm sorry for my english.
Second, I've a little question: is some tree stucture like collections
ArrayList or Queue to hold tree of same objects in .NET? Maybe I can use
TreeView to that. I must hold tree of Halma's game (like checkers), which I
generate with minimax algorithm.
Hmm, is it good in english? :-) I hope :-)
Thanks for all answers.
|
by: Siegfried Heintze |
last post by:
Is it possible to use the new ASP.NET2 Tree control by only downloading and
installing the new .NETFRAMEWORK v2? Or do you have to install visual studio
and the lastest version of IIS?
Anyone have a favorite article on how the new tree control does call backs
using web services?
Thanks,
Siegfried
|
by: samean |
last post by:
Hello,
Could you explain me,In VB6 using control array,and how
about VB.net.
Thanks
|
by: Bobby |
last post by:
Hello Tom and all,
I am also doing almost similar kind of task. In my tree View, I am
using 2 tree view from different access table which are almost similar.
I want to drag and drop childs from one tree to another. I read youe
messages, so think you alreay did it so can you please help me, its an
urgent. I am using Access 2003 & VB.
Thank you,
Kamlesh
| |
by: Daniel |
last post by:
I am trying to find all possible routes between two points on a tree using a top to bottom search only. The tree looks like this:
' 1
' / \
' 2 3
' / \
' 4 5 6
' / \ / \
' 7 8 9 10
' / \ \ / \ /
|
by: sagi |
last post by:
Hi, I need to build a binary tree in Visual Basic 6.0
but I only find code in Visual Basic 2005
please help it's important
Thanks :)
|
by: garyusenet |
last post by:
I'm using krypton toolkit which has allowed me to make a cool looking
form. However, when I set my textbox to disabled it is 'greyed' out.
The grey colour isn't in keeping with the office 2007 style look of my
form. How can i change the colour that control assumed when it's
disabled?
Thanks!
Gary-
|
by: perspolis |
last post by:
Hi all
I'm looking for a Combobox that displays tree.
Does anyone has a source code for that???
thanks in advance
|
by: Mel |
last post by:
How do I put my tree view control inside a content place holder? I
drag it there but it doesn't seem to appear in the correct spot.
P.S - I have a master page with a content section representing the
"body" of the page.
Mel
(Asp.net 2.0, Visual Basic, WinXP Pro SP2)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |