Wednesday 26 December 2012

How To Make A Web Browser In Visual Basic

Hello Programmers! Today we are going to learn "How To Make A Web Browser In Visual Basic".
Its Very Easy.

1. Start up Visual Basic



2.Resize the Form. Make It Really Big. I'd suggest size: 787, 726





3. Rename the Project



4. Go to the Toolbox. Press any tool, right click and press "Choose Toolbox Items."
Search for WebBrowser. Tick the box and press "OK".


5. You should see the WebBrowser in the picture above. ^
Now double click it. Your Form should become like this:


Now Add a textbox and 4 buttons on the top.



6. Now Rename Them:




Step 2: Coding


7.Double Click the search button. It should look like this:



8.Now add the following code:
WebBrowser1.Navigate(Textbox1.text)



9.Now double click the refresh button and add the following
WebBrowser1.Refresh




10.Double click back and enter the code:
WebBrowser1.GoBack



11.Open up Foward and write the code:
WebBrowser1.GoFoward



There you go! Your Own WebBrowser.
If you have any comments or complaints, please visit our Facebook Page


No comments:

Post a Comment