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