Page 1 of 1

having favorites to a webbrowser i made

Posted: Tue Jun 19, 2007 6:55 pm
by Dagger13
ok so what i want is when i load the program it will have a tree view that i want the favorites in but i don't know how to make it so when you start the program the tree view will load the favorites everything i try doesn't work for this part and i want it to have unlimited favorites

o and i use vb and this is a web browser im making and i dont want to internet explorer favorites on there i want it so i can add them from this program and i want a tree view to load them

so can somebody please figure out a code and give it to me? :cry:
and no im not a n00b at programing

Posted: Tue Jun 19, 2007 7:30 pm
by Altimit01
Some sort of textfile kept inside a program folder that contains all the favorites info? Read the info into a dynamic array of a favorites class and if anything is changed, before the app closes erase and rewrite the file. Best guess on my part.

Posted: Tue Jun 19, 2007 7:46 pm
by Dagger13
i know that but i cant figure out how to load it into the tree view after i start the program

Posted: Mon Jul 02, 2007 11:52 am
by stevo3463
if you know how to load text into a treeview do that from your resources.

if not then read up on treeviews

codeproject.com

im C# but i think they have VB stuff in there too

xml

Posted: Thu Jan 10, 2008 5:54 pm
by medp
try saving an xml file and a property that contains the path, then just load each information into a Dictionary<> to associate the display name and url that it leads to.

Posted: Thu Jan 10, 2008 5:58 pm
by LuxuriousMeat
Nice 6 month bump...

Posted: Thu Jan 10, 2008 6:51 pm
by Dagger13
yeah i figured out a way a very long time ago its got favorites and history and custome themes and a lot other stuff