Results 1 to 4 of 4

Thread: Need Help With Makin Web Browser

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Posts
    8

    Post Need Help With Makin Web Browser

    U all probably think that this is an easy thing to do:
    Can someone plz tell me the codes for the back, forward, refresh, stop, and home buttons
    i just want them to be normal buttons like command_click1 or wutever plz help as soon as possible!

  2. #2
    Junior Member ToasT's Avatar
    Join Date
    Jan 2003
    Location
    Michigan
    Posts
    19
    just use WebBrowser1.goBack and WebBrowser1.goForward under your click() procedures
    -=ToasT=-
    http://www.themikedionnes.com
    http://www.battlelust.tk



  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Posts
    8

    Doesnt work

    It says Variable not defined when i do that could u give me a whole example of the click () code

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    ooh, my first post

    The code you're looking for is:


    Private Sub Command3_Click()
    WebBrowser1.GoBack
    End Sub

    Private Sub Command4_Click()
    WebBrowser1.GoForward
    End Sub


    I'm trying to do the same thing. Now I have another problem. if the user clicks back when there is no more history or clicks fowards when there nothing there it throws up an error. I thought this could be fixed like this:
    I have a hidden textfield which has how many pages are before the current one and another hidden textfield containing the number of pages ahead of this one. If on of the is zero, then dissable the appropriate button. I don't know how do this though. Could someone please help me out.

    - - - -
    Never mind figured it out.
    Last edited by Acidic; Sep 21st, 2003 at 05:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width