473,837 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TreeView in Visual Basic.Net 2008

CAM
Hello,

I created a Treeview which has several roots with child nodes. What I am
trying to do is go to a form when the user press the third root and the
first child. How do I code that? Any tips will be appreciated. Thank you
in advance.

Cheers

Oct 14 '08 #1
2 5706
On Oct 14, 7:55*am, "CAM" <alex_marti...@ ca.rr.comwrote:
Hello,

I created a Treeview which has several roots with child nodes. *What I am
trying to do is go to a form when the user press the third root and the
first child. *How do I code that? *Any tips will be appreciated. *Thank you
in advance.

Cheers
Assuming your child node is located under a root node, you can
directly determine when child node is selected in TreeView's
AfterSelect event:

Private Sub TreeView1_After Select(ByVal sender As System.Object, _
ByVal e As System.Windows. Forms.TreeViewE ventArgs) _
Handles TreeView1.After Select
If e.Node.Name = "child_node_nam e" Then
<form_name>.Sho w()
End If
End Sub

HTH,

Onur Güzel
Oct 14 '08 #2
CAM
Thank you Kimiraikkonen, I was able to code and works great according to
your tip. Again, I appreicate the help.

Cheers

"kimiraikko nen" <ki************ *@gmail.comwrot e in message
news:b8******** *************** ***********@q35 g2000hsg.google groups.com...
On Oct 14, 7:55 am, "CAM" <alex_marti...@ ca.rr.comwrote:
Hello,

I created a Treeview which has several roots with child nodes. What I am
trying to do is go to a form when the user press the third root and the
first child. How do I code that? Any tips will be appreciated. Thank you
in advance.

Cheers
Assuming your child node is located under a root node, you can
directly determine when child node is selected in TreeView's
AfterSelect event:

Private Sub TreeView1_After Select(ByVal sender As System.Object, _
ByVal e As System.Windows. Forms.TreeViewE ventArgs) _
Handles TreeView1.After Select
If e.Node.Name = "child_node_nam e" Then
<form_name>.Sho w()
End If
End Sub

HTH,

Onur Güzel

Oct 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
345
by: Dudi Nissan | last post by:
Hi, My is: <%@ Register TagPrefix="IE" Namespace="Microsoft.Web.UI.WebControls" Assembly ="Microsoft.Web.UI.WebControls" %> <%@ Import Namespace="Microsoft.Web.UI.WebControls" %> <HTML> <HEAD> <title>TreeView</title>
1
9660
by: Access User | last post by:
I'm looking for complete documentation for the activex component "TreeView" in Access. I need a complete list of methods and properties, if such a thing exists. Paul
1
5890
by: http://www.visual-basic-data-mining.net/forum | last post by:
Hello, I am working on Treeview control. I want that, user create tree according to his requirement, can add topic under any node. Then just click update and that treeview data to be stored in MSAccess database. I already created how can he build tree but now unable to store tree data into dataset. So can somebody tell me how to store treeview data into dataset. Thank You in Advance.
5
5716
by: JamesT | last post by:
Is it me or has the VB.NET Treeview control gone back to the darkages. I am trying to update a VB6 programme that uses the treeview control a lot- there are 4 treeview controls which are constantly being altered by user input. On upgrading the treeview errors are too numerous to list all of them. What has happened to 'Treeview1.nodes.add (ParentNode, Relation, NodeKey, Text)'? and Treeview1.nodes(NodeKey) Why is there no Node.Key? ...
77
14462
by: Tark Siala | last post by:
hi i working with TreeView in VB6, and have good Properity Named (Key) with the Key i can goto Any Node i know hes Key. but in VB.NET i can find the Key :( please tell me where i can find the key in TreeView.Net... ----------------------------------------------- Best Regards From Tark
3
9845
by: SteveT | last post by:
I am trying to populate a TreeView with XML data within a DataSet. I don't see the property DataSource in the treeview, only a DataBinding. Can that property to be used to populate my TreeView or must I brute force my way by added each row of my dataset to the TreeView? -- ----------- Thanks, Steve
3
2138
by: Saucer Man | last post by:
Is this only available as part of Visual Studio or can it be purchased separately? -- Thanks!
3
11046
by: =?Utf-8?B?TWFyaw==?= | last post by:
In Visual Basic 2008 how do I programmatically set a node to selected? For example, my treeview has several nodes with dates, and I want set one of the dates as selected because it happens to match a date variable. How would I go about this? Thanks for any help! Mark
0
2211
by: dutsnekcirf | last post by:
Okay, I think this one is a really hard one for yous geniuses out there. I'm going to try my best to explain in as much detail as I can. And for the most part I just want to know if I'm doing this the right way of it there's an easier way to do it. Background/Platform: Windows XP Office Excel 2007 Visual Studio Tools for Office 2008 Document level customization VB.Net I have a spreadsheet that is used to project which site(s) a...
0
9682
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,...
0
10870
Oralloy
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...
0
10563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10621
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10267
tracyyun
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...
1
7804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5668
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4474
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
2
4038
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.