Web Browser - Favorites

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
harmeister
VIP - Donator
VIP - Donator
Posts: 26
Joined: Fri Jul 23, 2010 1:21 am

Web Browser - Favorites
harmeister
Hi I would like to request a tutorial for Visual Basic 2008. I would like to know how to save a bookmark in the menu with the page title and when u double click on it in the menu it will navigate to the url not the title name is this possible? Thanks!
Sincerely,
Harley
[Information Technologist in training, New to the whole VB coding]
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Web Browser - Favorites
mandai
Try this:
Code: Select all
    Dim uris As List(Of Uri) = New List(Of Uri)

    Sub favClick(ByVal sender As ToolStripItem, ByVal e As System.EventArgs)
        Dim uindex As String = sender.Text.Remove(sender.Text.IndexOf("."c))
        WebBrowser1.Url = uris(Integer.Parse(uindex))
    End Sub

    Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSetText.Click

        Dim tsi As ToolStripItem = FavoritesToolStripMenuItem.DropDownItems.Add(FavoritesToolStripMenuItem.DropDownItems.Count & ". " & WebBrowser1.Document.Title)
        uris.Add(WebBrowser1.Url)
        AddHandler tsi.Click, AddressOf favClick
    End Sub
User avatar
harmeister
VIP - Donator
VIP - Donator
Posts: 26
Joined: Fri Jul 23, 2010 1:21 am

Re: Web Browser - Favorites
harmeister
Ok when I tried this it gave me an error. What do I use to get this working? Also I would like to change my question for a tutorial. You know how in Internet Explorer it has the back button, the forward button, the picture-address bar drop down witht he recent history, and the compatability view, the refresh button, the stop button (which is attached to the address bar along with the other two buttons that light up when you hover over one part.) the search bar with the picture and the go button inside the bar. How do I make it like that? I would also like to know how to get the IE favorites bar and the tabs with the other buttons at the end.
Sincerely,
Harley
[Information Technologist in training, New to the whole VB coding]
3 posts Page 1 of 1
Return to “Tutorial Requests”