Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 131,988 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,075 people online right now. Registration is fast and FREE... Join Now!




web browser history

 
Reply to this topicStart new topic

web browser history

richard356
post 3 Sep, 2008 - 01:59 PM
Post #1


New D.I.C Head

*
Joined: 3 Aug, 2008
Posts: 34


My Contributions


smile.gif Please help smile.gif

CODE

    Private Sub gobtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gobtn.Click
        WebBrowser1.Navigate(addressbar.Text)
    End Sub
    Private Sub stopbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles stopbtn.Click
        WebBrowser1.Stop()
    End Sub
    Private Sub forwardbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles forwardbtn.Click
        WebBrowser1.GoForward()
    End Sub
    Private Sub refreshbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles refreshbtn.Click
        WebBrowser1.Refresh()
    End Sub
    Private Sub backbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles backbtn.Click
        WebBrowser1.GoBack()
    End Sub


Hi i have just made this simple quick browser but i want to improve it more and make it more usable. Does anyone know how how to add history logging to it.....please help icon_up.gif
User is offlineProfile CardPM

Go to the top of the page

gbertoli3
post 3 Sep, 2008 - 03:47 PM
Post #2


DIC at Heart + Code

Group Icon
Joined: 23 Jun, 2008
Posts: 1,024



Thanked 16 times

Dream Kudos: 950
My Contributions


Add this code to the Go Button's Click() event after the Navigate() Event.
CODE

    Private Sub gobtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gobtn.Click
        WebBrowser1.Navigate(addressbar.Text)
        listBox1.Items.Add(addressbar.Text)
    End Sub


Also I have created tutorials for creating and extending the webbrowser

Extending the WebBrowser in VB.NET
http://www.dreamincode.net/forums/showtopic60702.htm

Creating the WebBrowser in VB.NET
http://www.dreamincode.net/forums/showtopic59456.htm

Hope this helps
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/21/08 03:37AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month