473,387 Members | 1,497 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,387 software developers and data experts.

Help with treenodes and treeview

Hi,

Im making an asyncronous application that will detect broken links inside a
web site.

the question is that i have a tree view in my windows form application, and
when a person enters a url and click in the button "search broken links" the
application starts visit this page, get the html content and then try to
visit each link inside this content and again the same, until the complete
web site been analized...

The stuff is that when my application detects a broken link, a event is
fired. And in the moment im putting in a list view the following information:

Parent Page BrokenLink
-------------- --------------
http://www.xxxx.com http://www.xxxx.com/pagedontexists.html
http://www.xxxx.com
http://www.xxxx.com/pagedontexists2.html
http://www.xxxx.com/exists.html http://www.xxxx.com/pagedontexists3.html
......
Now i would like to use a tree view with red color for the url that dont
exists (broken links) and blue color if the url exists to have a better
visual organization

+ http://www.xxx.com
- http://www.xxxx.com/pagedontexists.html (in red
color)
- http://www.xxxx.com/pagedontexists2.html (in red
color)
+ http://www.xxxx.com/exists.html (in blue color)
- http://www.xxxx.com/pagedontexists3.html
(in red color)

My problem is that: While im getting the urls visited i have to put into the
correct node, and i dont know how programatically, placed each node inside
the tree view.

for instance:

sometimes i will add the node into the root like:
this.treeView1.Nodes.Add("test");
and sometimes i have to go deeper like : this.treeView1.Nodes[1].Add("test2");

I hope understood myself.
--
Thanks
Regards.
Josema
Jun 26 '06 #1
0 1224

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

Similar topics

0
by: Mg | last post by:
Hi. I would like to do like an Help menu (F1). So, I have a TreeView on the left, and 'a' panel on the right. The TreeNodes have a Tag that permit to store the panels I want to show on the...
0
by: Norbert Heidbüchel | last post by:
Hi all, I have read a lot of postings and web pages about drag and drop and treeviews, but could not find an answer to my problem. Sorry, if I missed something. I am trying to drag and drop...
2
by: DJG | last post by:
I need some help with a TreeView control in VB.Net I've got a datatable with about 8000 rows. 500 are 'folders', and the other 7500 rows are 'jobs'. It's a logical representation of some data,...
10
by: DrPete | last post by:
Hi People Could anyone suggest to me the best way to distinguish treenodes? By this I mean I'm in a situation where I have a TreeNode that displays a number of categories and within those nodes...
3
by: William Sullivan | last post by:
I desperately want to replace my hand-made ajax treeview with the 2.0 TreeView. The webpage I'm designing uses the postbacks to dynamically fill the treeview. The reason why I'm doing this is...
4
by: John Dann | last post by:
I'm trying to implement a fairly simple Treeview procedure but running into problems. My Treeview has just two levels of nodes: top-level and one child level. I want a doube-click on the...
0
by: SBelzile | last post by:
Hi, We are working on a vb.net WinForms project based on the Composite UI Application Block (VS2005). I have a strange problem. At first, I thought 10 minutes would be fairly enough for me to...
0
by: Rama Jayapal | last post by:
i have a webpage where i have parsed all the details using html parser now the parsed document is in html format i have now converted this document into a treeview now the problem is i have...
3
by: John Rogers | last post by:
How do you move a selected node up or down a treeview? Not by drag and drop but by clicking a button to move the node up or down. I tried the following, but my tree gets all messed up after I...
2
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
My first time using a TreeView: I've got a TreeView that I populated with some data and it has nodes. In the Properties window, I created an Event Handler for the TreeView's AfterSelect...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
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,...
0
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...
0
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...

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.