Вы находитесь на странице: 1из 4

Chapter 6 Homework Solutions:

Chapter 6-Multiple Forms ANSWERS TO REVIEW QUESTIONS 1. What does the phrase standard code module mean? A standard code module holds sub procedures and function procedures that will be used in multiple forms. It is also used to declare global variables and constants. A standard code module is a Basic file with the extension .BAS, which is added to the project. Standard code modules do not contain a form, only code. Discuss the difference between declaring a variable in the General Declarations section of a standard code module and declaring a variable in the General Declarations section of a form code module. When a project contains multiple forms, variables and constants can be local to a procedure; module level, which are available to all procedures in the form code module; or global, which are available to all procedures in all form code modules in the project. Global variables and constants must be declared in the General Declarations section of a standard code module using the Public statement. Variables declared with the Dim statement in the General Declarations section of a form code module are module level variables. List some of the items generally found in an About box. An About box usually gives the name and version of the project as well as information about the programmer or company. What is the purpose of a splash screen? A splash screen is the initial form, a logo or a window, that appears while a program is loading. Splash screens are widely used in professional applications to give an indication to the user that the program is loading and starting. It can make a large application appear to load and run faster, since something appears on the screen while the rest of the application loads. What is the term used for the first form to display in a project? If a project does not contain a splash screen, the first form that will display when the project begins is called the startup form. How can you choose a different form as the startup form after the project has been created? You can select a different form to be the startup form when the project is run. In the Project Properties dialog box you can choose one of the project's forms or Sub Main. 1. Select Project Properties from the Project menu (or right click on project name in the Project Explorer window and choose Project Properties). 2. In the Project Properties dialog box, click on the General tab. 3: Drop down the list for Startup Object and select the desired form or the Sub Main procedure. 4: Click on OK. Explain how to include an existing form in a new project. To add an existing form to a project, use the Add Form command on the Project menu, and

2.

3.

4.

5.

6.

7.

select the Existing tab. You will need to supply the name of the form and the folder where it can be found. Steps for adding an existing form to a project: 1: Select Add Form from the Project menu. 2: In the Add Form dialog box select the Existing tab and locate the folder and file desired. 3: Click on Open.

Вам также может понравиться