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).
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.
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.
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 ...