O'Reilly logo

Programming Visual Basic 2008 by Tim Patrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Project

This chapter's project code implements the Library Project's basic "Main" form, as well as the "Splash" form that appears when the project first starts up. Microsoft, knowing that this was a common need, included support for both main and splash forms in Visual Basic's Application Framework system. By default, this system is enabled through the project properties' Application panel (see Figure 7-11).

Main and splash fields identified through the project properties

Figure 7-11. Main and splash fields identified through the project properties

The "Startup form" and "Splash screen" fields indicate the main and splash forms, respectively. It's quick, it's easy, and it's just the thing for us. So, let's get to work. Now would be a great time to load the starter project for Chapter 7.

PROJECT ACCESS

Load the Chapter 7 (Before) Code project, either through the New Project templates or by accessing the project directly from the installation directory. To see the code in its final form, load Chapter 7 (After) Code instead.

Configuring the Splash Screen

I've already added a new form file to the project, named Splash.vb (the form itself is named Splash), including some simple display elements to gussy it up somewhat. Check out the graphic on the form. It's presented through a PictureBox control, but it's stored in the application as a resource, a collection of strings and images attached to your source code. The Resources folder in the Solution Explorer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required