advanced history [webbrowser]

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.
6 posts Page 1 of 1
Contributors
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

advanced history [webbrowser]
zachman61
i need a history so it catergorizes it by the site name and not the url
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: advanced history [webbrowser]
mandai
Try:
Code: Select all
    Dim uris As List(Of Uri) = New List(Of Uri)

    Private Sub WebBrowser1_Navigating(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
        ListBox1.Items.Add(ListBox1.Items.Count & ". " & WebBrowser1.Document.Title)
        uris.Add(WebBrowser1.Url)
    End Sub

    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        WebBrowser1.Url = uris(ListBox1.SelectedIndex)
    End Sub
Though it is hardly advanced.
User avatar
un kn0 wn
VIP - Donator
VIP - Donator
Posts: 269
Joined: Mon Mar 29, 2010 6:12 pm

Re: advanced history [webbrowser]
un kn0 wn
mandai wrote:
Try:
Code: Select all
    Dim uris As List(Of Uri) = New List(Of Uri)

    Private Sub WebBrowser1_Navigating(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebBrowser1.Navigating
        ListBox1.Items.Add(ListBox1.Items.Count & ". " & WebBrowser1.Document.Title)
        uris.Add(WebBrowser1.Url)
    End Sub

    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
        WebBrowser1.Url = uris(ListBox1.SelectedIndex)
    End Sub
Though it is hardly advanced.

that isnt exactly advanced but mandai's code shud work usually i do mine in date category becuz i dnt put urls in history i put the websites title so itz much eazia to organize em into date category.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: advanced history [webbrowser]
zachman61
how do i do the date category
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: advanced history [webbrowser]
mandai
Add DateTime.Now to the listbox instead of the document title?
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: advanced history [webbrowser]
zachman61
ill try it
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
6 posts Page 1 of 1
Return to “Tutorial Requests”