473,842 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1240

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

Similar topics

0
2701
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 right. But, I don't know how to display the panel I want :
0
2423
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 treenodes defined by myself and don't understand, how to get the nodes data in the dragdrop event. I'm not very experienced in .NET and for sure there is a simple solution. I've written a short sample program, based on well known examples,
2
1552
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, and not a physical drive. Each row has: master_key (unique id) folder_name (name for the user to see) parent_key (the master_key of the parent folder)
10
1763
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 there are items of stock. There are a number of things I wish to do, such as use a ContextMenu to Rename the node, but I can't seemingly tell if the Node I'm renaming is a category or an item of stock.
3
1642
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 because my tree is ENORMOUS. It can possibly hold millions of nodes. The problem is keeping this treeview constrained as a user clicks through the nodes. I've tried putting it in a DIV with a set width and height, but the problem is that when you...
4
6377
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 Treeview to do one of two things: If the double-click was on a top-level node then the default action of exapnding/collapsing the node should be allowed as usual and with no further action.
0
1229
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 solve it but I've spent almost 6 hours on it today and still can't figure out what's wrong. Using the CAB, I have built a control that intercepts messages coming from other CAB's SmartParts controls and display them into a treeview control. The...
0
880
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 to extract all the treenodes or tagname starting with <A href...>
3
9887
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 move the first node. TreeNode sourceNode = treeView.SelectedNode; if (sourceNode.Parent == null)
2
2193
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 method, and it allows me to determine what Tree Node has been selected. However, if I expand the TreeView and select one of the Child TreeNodes, they do not trigger this event.
0
9870
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, 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...
0
10942
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
10610
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...
0
10310
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...
0
9452
agi2029
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...
1
7855
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
7035
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();...
0
5884
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4088
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.