LightbulbTutorial on creating a advanced web browser with Visual basic.

Posts 1–4 of 4 · Page 1 of 1
Tutorial on creating a advanced web browser with Visual basic.
Creating a Web Browser


1.) Create a new project, Windows Form Application, click ok.

2.) Resize it to the suitable position.



3.) Create 5 buttons, and put them in the position I put them in.



4.) Rename the buttons. Here's what you should change them too.

Button 1 = Back Or <<<

Button 2 = Forward Or >>>

Button 3 = Refresh

Button 4 = Stop Or X

Button 5 = Go

5.) Create a TextBox, and put it in line of the gap between the 5 buttons.



6.) Create 2 extra buttons, rename Button 6 to Search Bing , And rename Button 7 to Search Google.

Create a textbox and put them in the order I do.



7.) Insert a webbrowser, go to properties, and resize it to fit just under the buttons.



Now for the coding, you may not have knowledge with coding, I'll tell you.

8.) Double click on Back and type in underneath Private sub,

Code:
WebBrowser1.GoBack()
9.) Do this for all the buttons, except use the appropriate codes.

CODES:

Code:
Forward : WebBrowser1.GoForward()

Refresh : WebBrowser1.Refresh()

Stop : WebBrowser1.Stop()

Go : WebBrowser1.Navigate(TextBox1.Text)

Search Bing : WebBrowser1.Navigate("www.bing.com/search?q=" & TextBox2.Text)

Search Google : WebBrowser1.Navigate("www.google.com/search?q=" & TextBox2.Text)
Thats all! Now Debug it by pressing F5 on your keyboard.

Test if it works by trying to type in the second text box we made earlier, and click search Google, then it should search.

Any problems? Message user me and I'll try to help you.
LOL NICE I CAN MAKE BETTER ONE WHIT TABS AND SETTINGS + HISTORY
This isnt advanced its simple :P
@maj your siggy lol

anyways i said its advanced because of functions next time i will make one with tabs etc etc.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?