Page 1 of 1

advanced history [webbrowser]

Posted: Tue Aug 03, 2010 2:23 am
by zachman61
i need a history so it catergorizes it by the site name and not the url

Re: advanced history [webbrowser]

Posted: Tue Aug 03, 2010 9:46 am
by 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.

Re: advanced history [webbrowser]

Posted: Tue Aug 03, 2010 10:40 am
by 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.

Re: advanced history [webbrowser]

Posted: Sat Aug 14, 2010 12:01 am
by zachman61
how do i do the date category

Re: advanced history [webbrowser]

Posted: Sat Aug 14, 2010 6:39 pm
by mandai
Add DateTime.Now to the listbox instead of the document title?

Re: advanced history [webbrowser]

Posted: Sun Aug 15, 2010 5:04 am
by zachman61
ill try it