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()
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)
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.