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?
Printable View
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?
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.
VB Code:
WebBrowser1.GoForward() WebBrowser1.GoBack() WebBrowser1.Refresh()
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.