How to Make a Web Browser

Steps

  1. Make a Web Browser Step 1 Version 2.jpg
    1
    Install Visual Basic on your computer by either downloading the software from the Visual Basic Developer Center website or using an installation disk.
    Ad
  2. Make a Web Browser Step 2 Version 2.jpg
    2
    Run Visual Basic and start a new project by going to the File menu and clicking on "New Project."
  3. Make a Web Browser Step 3 Version 2.jpg
    3
    Browse over "Text" and select "Web Browser" in the form page that appears.
  4. Make a Web Browser Step 4 Version 2.jpg
    4
    Go to "View" in the top menu bar, browse over "Other Windows" and click on "Toolbox." This will display the Visual Basic toolbox.
  5. Make a Web Browser Step 5 Version 2.jpg
    5
    Double-click on the Web browser tool in the toolbox.
  6. Make a Web Browser Step 6 Version 2.jpg
    6
    Press the right arrow icon on the top-right of the form and click on "Undock in Parent Container." This will change the view of the form from full-screen to a smaller window within the Visual Basic interface.
  7. Make a Web Browser Step 7 Version 2.jpg
    7
    Resize the web browser form to your desired size using the clickable outline around it.
  8. Make a Web Browser Step 8 Version 2.jpg
    8
    Set the URL (Uniform Resource Locator) property to a website address that you wish to visit. This will open up a default website on open so you can see what a website will look like when opened through your Internet browser.
  9. Make a Web Browser Step 9 Version 2.jpg
    9
    Create a new button and assign the following properties to it.
    • The text on the button should say "Go."
    • Name the button "GoBtn."
  10. Make a Web Browser Step 10 Version 2.jpg
    10
    Trigger the button by double-clicking on it. This will pop up a private sub. Enter the following code between the private and end subs (you can replace "URL" with any website address).
    • WebBrowser1.Navigate(URL)
  11. Make a Web Browser Step 11 Version 2.jpg
    11
    Test the button by clicking on it. It should take you away from the default website to the destination website assigned for the button.
  12. Make a Web Browser Step 12 Version 2.jpg
    12
    Select the TextBox tool from the toolbox.
  13. Make a Web Browser Step 13 Version 2.jpg
    13
    Drag the TextBox tool and drop it on the custom web browser form that you are creating.
  14. Make a Web Browser Step 14 Version 2.jpg
    14
    Name the text box as "addressTxt."
  15. Make a Web Browser Step 15 Version 2.jpg
    15
    Go back to the button you created earlier and replace the URL with "addressTxt.Text." This indicates that you want to use the button to go to whatever URL is typed in the address bar.
  16. Make a Web Browser Step 16 Version 2.jpg
    16
    Test the address bar by using it to visit different websites.
  17. Make a Web Browser Step 17 Version 2.jpg
    17
    Save the web browser that you have just created as a program through Visual Basic by selecting the option to save through the File menu.
SHARE

About Unknown

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment