398 Part III Designing the User Interface
- Enlarge the form.
This works just fine. And in addition to modifying the size, you can change the location
and other display or operational characteristics of the form. Notice that if you use the
Properties window to customize a form, the Object list box in the Properties window
displays the form from which the current form is derived. Here’s what the Properties
window looks like in your project when Form2 is selected:
Now set the startup object in your project to Form2.
- Click the My Form Inheritance Properties command on the Project menu.
The Project Designer, introduced in Chapter 14, appears.
- On the Application tab, click the Startup Form list box, click Form2, and then close the
Project Designer by clicking the Close button on the tab.
There is no Save button in the Project Designer because Visual Studio saves your
changes as you make them in the dialog box. Now run the new project.
Tip The complete Form Inheritance program is located in the C:\Vb10sbs\Chap16\Form
Inheritance folder.
- Click the Start Debugging button.
The inherited form opens, as shown here. (My version is shown slightly enlarged after
following step 6 earlier in this exercise .)