Visual Basic Browser tutorial

Posts 1–7 of 7 · Page 1 of 1
Visual Basic Browser tutorial
(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.




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




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




Step four:

Name the form like you named the buttons


Step five:

Code the buttons by double clicking them.



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.



____________________________________________


It worked for me:



____________________________________________



To make a starting page:

Click the web browser in your [Design] and look for the URL in the properties box:



____________________________________________



That's it! I hope it will be usefull for some people...
Smexy tut although I know how to do a more simple one.
Ah... W/e, I like to do it this way.
omg nice! but when i debug it says that webbrowser1 is not declared
There are so many tut about webbrowser it's so easy
anyway good job.
very nice tutorial lol n1
Quote Originally Posted by Newbabovethispost
very nice tutorial lol n1
A. Thread is over 2 months Old
B. Guy has been banned, So who are you talking to?...........

Oh... Your post count......
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us