(G)rapefruit's supersimple Visual Basic tutorial: How to make a simple web browser!
################################################## #############################################
For newbies.
Step one:
Start Visual basic, File > New Project > Windows Form application > Name it > OK.
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/screen1-1.jpg[/IMG]
Step two:
Resize it to your preferable size and insert these things:
*Textbox
*5 Buttons ( I KNOW THAT THERE IS A BUTTON 6 IN THE SCREENS!!! IGNORE IT! JUST MAKE 5 BUTTONS)
*Web Browser
*Text Box
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/screen2.jpg[/IMG]
Step three:
*Click button 1 and make the text: Back
*Do the same with button 2 but make it Forward
*Make button 3: Refresh
*Button 4: home
*Button 5: Go
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/screen3.jpg[/IMG]
Step four:
Name the form like you named the buttons
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/screen4.jpg[/IMG]
Step five:
Code the buttons by double clicking them.
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/screen8.jpg[/IMG]
Go button:
Code:
WebBrowser1.Navigate(TextBox1.Text)
Back button:
Code:
WebBrowser1.GoBack()
Forward button:
Code:
WebBrowser1.GoForward()
Refresh button:
Code:
WebBrowser1.Refresh()
Home button:
Code:
WebBrowser1.GoHome()
Step six:
Click the 'Debug' button and start the browser.
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/debugscreen.jpg[/IMG]
____________________________________________
It worked for me:
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/lastscreen.jpg[/IMG]
____________________________________________
To make a starting page:
Click the web browser in your [Design] and look for the URL in the properties box:
[IMG]https://i708.photobucke*****m/albums/ww84/seanyboy225/URL.jpg[/IMG]
____________________________________________
That's it! I hope it will be usefull for some people...