Sams Teach Yourself Visual Basic 6 in 24 Hours

Sams Teach Yourself Visual Basic 6 in 24 Hours

By Greg Perry

Using the Browser

When you select View | Web Browser with your generated application, your application will attempt to make an Internet connection through your ISP. Generally, this means that you'll have to log on to the Internet by issuing your username and password. For example, if you subscribe to the Internet using The Microsoft Network online service, you'll see Figure 24.4's Sign In dialog box right after you select View | Web Browser.

24fig04.jpg

Figure 24.4 You must connect to your ISP.

Obviously, anyone who runs your application must also log in to her ISP, and her ISP login dialog box will appear in place of this Sign In dialog box if she uses a different ISP.

After you (or your application's user) log in to the ISP, the application displays the Web browser and the Web page you set as the default (see Figure 24.5).

24fig05.jpg

Figure 24.5 Your application now contains a Web browser.

The Web browser includes the standard browsing tools that you are used to if you've ever used a browser. You can perform all the following tasks from your application's browser:

All this is possible and you never coded one programming statement to gain the Internet functionality!

Java is a Web-based programming language similar to C++. Java adds interactivity to a Web page.

VBScript is a Web page scripting language that you can use to activate Web pages by adding intelligence to Web pages to interact with the user.

By the way, now that you've mastered Visual Basic, you know almost everything there is to know about VBScript. Therefore, you'll be able to work as a Web page programmer with just a little extra training in VBScript and HTML coding. For a great text that explains how to use VBScript, pick up a copy of either Sams Teach Yourself VBScript in 21 Days or Laura Lemay's Web Workshop: ActiveX and VBScript (both by Sams Publishing).

When you finish browsing the Web, you can close the Browser window and continue with your application. Obviously, the wizard's application is still just a shell. Nevertheless, the most functional part of the application is the Web browser, and you can see how simple Visual Basic makes it to drop a browser into an application.

Share ThisShare This

Informit Network