473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Treeview with link

nurikoAnna
How to use a treeview when I click the node a form will show to the screen...

please help me...thanks God bless...
Jan 6 '09 #1
9 2341
debasisdas
8,127 Expert 4TB
Are you fetching any data from database and want to display on a form ?

or you want to open a new form each time you click on a new node ?
Jan 6 '09 #2
QVeen72
1,445 Expert 1GB
Hi,

In node click event, depending on the node caption , call the form..
Something like this :

Expand|Select|Wrap|Line Numbers
  1. If TrVw.SelectedItem.Text = "Customers" Then
  2. frmCustomers.Show
  3. Elseif TrVw.SelectedItem.Text = "Orders" Then
  4. frmOrders.Show
  5. End If
  6.  
REgards
Veena
Jan 6 '09 #3
@debasisdas

I want to open a new form each time I click on a new node...
Jan 8 '09 #4
@QVeen72


where can I find node event???
Do I have to declare some variable because i got this error on the first line
"object variable or with block variable not set"

Is costumer a name for a node???
Jan 8 '09 #5
QVeen72
1,445 Expert 1GB
Hi,

On your Form, Double Click the TreeView, and from event's list, Select the NodeClick event..
From my code, change the name of Control Treeview , Give your control name accordingly..

Regards
Veena
Jan 8 '09 #6
@QVeen72

Thanks you so much... it works...

How to put image on the treeview??/
how to initialize

God bless
Jan 8 '09 #7
QVeen72
1,445 Expert 1GB
Hi,

Add an ImageList Control to your Form.
Add All the Images,
Select Treeview's Property : ImageList = ImageList1
Now when you add nodes, To Set 4th Image in Image List :
Give this syntax:

TrVw.Nodes.Add , , "MynewNode", "New Node", 4

Change Images's Index Accordingly..

Regards
Veena
Jan 9 '09 #8
@QVeen72


Thanks God bless....
Jan 10 '09 #9
@debasisdas


what if I am fetching data freom the databse??/ can you help me with that???
Jan 11 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: mcnews | last post by:
i need a treeview example for a web application. the MSDN help file is no help. thanks, mcnewsxp
4
by: hzgt9b | last post by:
Using VS.NET 2003, VB: I have a TreeView object with lots of nodes. The treeview is docked on the left side of my main from in a splitter. I want to set the splitter's initial width to allow all...
1
by: Susan | last post by:
I'm trying to create my own version of dynamic help. Does anyone know how to make a node a link to a html file?
6
by: Chris Marsh | last post by:
I have setup a treeview on my XP desktop and it displays data yet on the Windows 2003 Server it will not display the treeview. Does anyone have a clue on how to make this function on 2003 Server?...
2
by: Ryo | last post by:
Hello ! I have an XmlDocument in memory and I want to put this document as datasource of my treeview. How to do this ? Thanks.
3
by: musosdev | last post by:
Hi guys How do I get the new TreeView (asp2.0) to load something in an Iframe? I've setup a NaviagateUrl and set the Target property to the name of the Iframe, but it still tries to load a new...
0
by: Shadow Lynx | last post by:
When using ASP.NET 2.0's built-in TreeView on a page with <BASE target = "AnythingBut_Self"></BASE> in the HEAD, the expand/collapse buttons fail to function. The reason for this is that the...
1
by: Victor Rodriguez | last post by:
Is there a way that I can have a client side event like oncontextmenu="showfunction();" on each node? thanks, Victor
8
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the...
0
by: wernh | last post by:
Hi, I have the following xml sample file: <?xml version="1.0" encoding="utf-8"?> <catalogue id="catalogue"> <alldocs id="alldocs"> <documents id="New Heading1" desc="" link="#" uid="1">...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.