Creating a Web browser application

In this exercise, you will use the Web Browser Control in Visual Basic to create a simple Web browser application.

* To add a browser form to a project

  1. Start Microsoft Visual Basic and create a new Standard EXE application.
  2. Right-click the Project Explorer and from the Add menu, click Form .
  3. From the New tab, select Browser and click Open .
  4. Set the MDIChild property of frmBrowser to False .
* To set the startup object in the project
  1. From the Project menu, click Project1 Properties .
  2. In the Startup Object box, select frmBrowser and click OK .
  3. Run the application and browse to:
     localhost 
  4. Stop the application and review the code provided in the buttonclick event of the toolbar.

Lesson Summary

When developing Network applications, you can use the TCP/IP protocol through the Windows Sockets API. To use other protocols such as HTML and FTP, you can use the WinInet API. The simplest solution is to use ActiveX controls, which provide prepackaged functionality that do not require you to program directly to any APIs.



Microsoft Windows Architecture Training
Microsoft Windows Architecture for Developers Training Kit
ISBN: B00007FY9D
EAN: N/A
Year: 1998
Pages: 324

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net