Well for so far everything is going well. I made a favorites list. (its a listbox or whatever you call it) But I want when you click the selected text in the list (the name of site), that the addressbar caption changes. but how? I tried some things but didnt work.
If you press the link in the favo list then you go to the website (so that works)
What do you mean by "the addressbar caption", you mean the textbox where you write the URL?
yes, where you write the address / url that needs to be changed when you clikc the selected text in favorites
Do you mean like (in Visual Studio '03+):
Code:txtAddressbar.Text = "http:\\www." & lstFavorites.SelectedItem.ToString & ".com"
yeah something like that, but now i need it for vb6
In a click event procedure for the listbox:
i think that would get the job done, presuming the string saved in your list is the full url (including http:// etc)Code:Dim Index As Integer Index = lstFavourates.ListIndex txtAddressBar.Text = lstFavourates.List(Index)
please post if theres an easier way to do this sort of thing in VB6 =D
thx, now I need only one more thing and that is: If you add a page to your favorites I want that those added pages will be saved, so when you start the programm the next time and you click on Show Favorites that the favo pages will be showed that you have added. Any ideas?
You can use a simple text file, saving the list box into a text file.
how? tell me![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks