How to create MSDN TOC type of tree control/applet
Hi,
I would like to know how I can create a tree control/applet, like the one on the MSDN site (TOC). In fact, I would like to populate this tree control dynamically by reading data from a backend database. Could you direct me to some resource/site where I could get more information on this ? Is the MSDN TOC applet available freely or in source code form ?
Thank you
Prashanth
Re: How to create MSDN TOC type of tree control/applet
Hi,
Try this out and let me now if it works, it worked for me.
Private Sub Form_Load
'Declare a variable of node type
Dim DNode as node
'Set the main Node and give it a name, i have called it Main, Prashanth will appear in the main page
Set Dnode = Treeview1.nodes.add(, , "Main","Prashanth")
'Add a child node to the Parent Node called Main, TOC will appear below Prashanth
' Main is the name of the parent, tvwchild is the relationship you want it to share with the parent, 'VisualBasic is any name you can give it and Toc is what you will see in your main Page
Set Dnode=treeview1.nodes.add("Main",tvwChild,"VisualBasic", "TOC")
End sub
Have fun,
Derek
Re: How to create MSDN TOC type of tree control/applet
the easiest way to do that is to use the HTML workshop.
download it from the MS Site. it's free.
It does (almost) everything for you (i.e. build the tree, keep it in sync with the contents window...)
You can include the HTML Help Control OCX in your own app (or HTML page).
Re: How to create MSDN TOC type of tree control/applet
You can download an excellent freeware JavaScript 'folder control' from :
http://www.geocities.com/Paris/LeftBank/2178/
It allows you to customise just about every aspect of the tree (well, you do have the source-code!)
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb