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

XML and TreeView in VB.net

Hello,
I have XML file that looks likes this:

<?xml version="1.0" encoding="utf-8" ?>
<prezentacije>
<datoteka naziv="Koherentni valovi"
lokacija="https://161.53.9.159/Predavanja/Buljan_files/Default.htm#nopreload=1"
/>
<datoteka naziv="Zvjezdana prašina"
lokacija="https://161.53.9.159/Predavanja/petravic.htm#nopreload=1" />
</prezentacije>

************
I need to load that XML file (called sample.xml) into TreeView control
but with this conditions:

In TreeView I must see only what stands as part of naziv, for example
"Koherentni valovi" or "Zvjezdana prasina", but when i make doubleclick
on that node, i want webbrowser control (named webMain) to naviagate to
URL given in lokacija, like
https://161.53.9.159/Predavanja/petr...tm#nopreload=1

So, treeview should like smoehow like this:

Prezentacije
|
---Koherentni valovi
---Zvjezdana prasina

And when i click on Zvjezdana prasina to load
https://161.53.9.159/Predavanja/petr...tm#nopreload=1 into webMain

Thank you in advance,

Vibor
Nov 12 '05 #1
3 1829
So what is your question? What part don't you know how to do?

Chris
"Vibor" <ci***@ifs.hr> wrote in message news:cu**********@bagan.srce.hr...
Hello,
I have XML file that looks likes this:

<?xml version="1.0" encoding="utf-8" ?>
<prezentacije>
<datoteka naziv="Koherentni valovi"
lokacija="https://161.53.9.159/Predavanja/Buljan_files/Default.htm#nopreload=1"
/>
<datoteka naziv="Zvjezdana prašina"
lokacija="https://161.53.9.159/Predavanja/petravic.htm#nopreload=1" />
</prezentacije>

************
I need to load that XML file (called sample.xml) into TreeView control but
with this conditions:

In TreeView I must see only what stands as part of naziv, for example
"Koherentni valovi" or "Zvjezdana prasina", but when i make doubleclick on
that node, i want webbrowser control (named webMain) to naviagate to URL
given in lokacija, like
https://161.53.9.159/Predavanja/petr...tm#nopreload=1

So, treeview should like smoehow like this:

Prezentacije
|
---Koherentni valovi
---Zvjezdana prasina

And when i click on Zvjezdana prasina to load
https://161.53.9.159/Predavanja/petr...tm#nopreload=1 into webMain

Thank you in advance,

Vibor

Nov 12 '05 #2
Hi,

Not sure if I understand the question. Maybe this will help.

http://support.microsoft.com/default...b;en-us;308063

Ken
-----------------------
"Vibor" <ci***@ifs.hr> wrote in message news:cu**********@bagan.srce.hr...
Hello,
I have XML file that looks likes this:

<?xml version="1.0" encoding="utf-8" ?>
<prezentacije>
<datoteka naziv="Koherentni valovi"
lokacija="https://161.53.9.159/Predavanja/Buljan_files/Default.htm#nopreload=1"
/>
<datoteka naziv="Zvjezdana prašina"
lokacija="https://161.53.9.159/Predavanja/petravic.htm#nopreload=1" />
</prezentacije>

************
I need to load that XML file (called sample.xml) into TreeView control
but with this conditions:

In TreeView I must see only what stands as part of naziv, for example
"Koherentni valovi" or "Zvjezdana prasina", but when i make doubleclick
on that node, i want webbrowser control (named webMain) to naviagate to
URL given in lokacija, like
https://161.53.9.159/Predavanja/petr...tm#nopreload=1

So, treeview should like smoehow like this:

Prezentacije
|
---Koherentni valovi
---Zvjezdana prasina

And when i click on Zvjezdana prasina to load
https://161.53.9.159/Predavanja/petr...tm#nopreload=1 into webMain

Thank you in advance,

Vibor
Nov 12 '05 #3
Well i dont know how to load that XML file in TreeView so I can only
see naziv but not lokacija too, and I dont know how to get lokacija as
a string wich I will give to webMain control to navigate at it.

Hope this makes it clear

V.

"Chris, Master of All Things Insignificant" <chris@No_Spam_Please.com> wrote in message news:<uw**************@TK2MSFTNGP12.phx.gbl>...
So what is your question? What part don't you know how to do?

Chris
"Vibor" <ci***@ifs.hr> wrote in message news:cu**********@bagan.srce.hr...
Hello,
I have XML file that looks likes this:

<?xml version="1.0" encoding="utf-8" ?>
<prezentacije>
<datoteka naziv="Koherentni valovi"
lokacija="https://161.53.9.159/Predavanja/Buljan_files/Default.htm#nopreload=1"
/>
<datoteka naziv="Zvjezdana pra?ina"
lokacija="https://161.53.9.159/Predavanja/petravic.htm#nopreload=1" />
</prezentacije>

************
I need to load that XML file (called sample.xml) into TreeView control but
with this conditions:

In TreeView I must see only what stands as part of naziv, for example
"Koherentni valovi" or "Zvjezdana prasina", but when i make doubleclick on
that node, i want webbrowser control (named webMain) to naviagate to URL
given in lokacija, like
https://161.53.9.159/Predavanja/petr...tm#nopreload=1

So, treeview should like smoehow like this:

Prezentacije
|
---Koherentni valovi
---Zvjezdana prasina

And when i click on Zvjezdana prasina to load
https://161.53.9.159/Predavanja/petr...tm#nopreload=1 into webMain

Thank you in advance,

Vibor

Nov 12 '05 #4

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

Similar topics

42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
5
by: SoKool | last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control. I intend to use a treeview to generate a...
1
by: paradox | last post by:
I want to have a TreeView that shows an image on some items, but not all. Basically, if a certain condition is true, a caution icon is placed next to the treeview item. The problem is that, by...
3
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
6
by: L.M | last post by:
Hello, I knew how to use the treeview under VB6. After migrating to .NET, well, I'm lost. I try to add a new node, either to the same level or as a child to a selected node in the treeview....
14
by: Mr.D | last post by:
How do I save/load the contents of a Treeview to a file? I have found several good examples written i VB6, but not a single one for VB.NET. Please help. ---- Tim
3
by: christof | last post by:
I've got a really easy problem, please help me: There are two pages in one I'm creating a TreeView like that: TreeView dbTree = new TreeView(); TreeNode dbTreeRoot = new TreeNode("Root");...
2
by: Tymbow | last post by:
I'm building a web application that is analogous to the Windows XP file explorer in function. The left column contains a TreeView, and the right column a DataGrid populated by selecting TreeView...
1
by: kvicky | last post by:
I am trying to load child nodes to a TreeNode in a TreeView in a ASP.net web application. The Treeview with parent nodes are loaded on a Page_load while doing if( ! ISPostback ) and then in the...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.