Results 1 to 4 of 4

Thread: This is getting frustrating...

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    1

    This is getting frustrating...

    Im pretty new to Visual Basic, and I want to make a custom web browser to fit my needs. I have everything on it perfect, exept I have no idea what the code is for back, forward, and refresh. Could someone let me in on that code?

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: This is getting frustrating...

    For back and forth, you need to keep track of that information in memory.

    For refresh, it depends on how you are loading the page, but it should be something as simple as reloading the page.

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: This is getting frustrating...

    VB Code:
    1. WebBrowser1.GoForward()
    2.         WebBrowser1.GoBack()
    3.         WebBrowser1.Refresh()
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: This is getting frustrating...

    A word of advice: if you're using a class, e.g. WebBrowser, and you want to do something with it then the first thing you should do is read the MSDN help topic for the class itself and the second thing you should do is read the help topic for its member listing. More often than not this will provide you the information you need. Most types and members in the .NET Framework are quite descriptively named, as in this case. Had you read the member listing topic for the WebBrowser I'm quite sure that you'd have recognised that those three methods did exactly what you wanted.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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