PRG 240 - Class #2 Lecture
Finish building Ch. 2 demo program that illustrates selected topics
- Create an MDI project (p. 29) by adding an MDI parent form to a project.
- Closely observe the interface of MS Word with parent and child forms.
- Add a Windows menu to the parent form by setting the WindowList property
to True.
- Use the parent form's Arrange method to cascade or tile the child forms
with separate menu options on the Windows menu.
- Add an exit command button that properly unloads all of the forms by using
a For Each loop in the form's Unload event procedure (p. 32).
- Create a shortcut menu (aka Popup menu) that the user can invoke with a
right-click.
Review the code for Advanced Vision and Beyond project at the
end of Ch. 2.
- execute the project from the Student CD-ROM
- discuss the importance of pages 69-72 "planning the interface"
- discuss the applicability of the objects & properties planning on pages
72-79
- analyze selected portions of the project's code on pp. 81-88
- Sub Main
- what is the purpose of sub Main?
- how & where is a Main procedure added?
- frmMain
- the project's menu including File/Exit (only the parent is unloaded)
and the Window menu
- the Unload event
- identify the popup menu related code (you will be asked to add such
code to Video Bonanza next week)
- frmInsurance
- Form_Load event - hardwires the ListView elements
- identify the popup menu related code
- analyze the toolbar ButtonClick event (on p. 86)
- frmPatient
- identify the popup menu related code
- frmAbout
- How is an About dialog box added to a project?
- (if time) Add an About form to a project in class.
- frmSplash
- How is a splash screen added to a project?
- (if time) Add a splash screen to a project in class.
- practice using the Student CD-ROM copy of Advanced Vision and Beyond
to examine controls and design time properties
- examine the menus
- examine the ImageLists associated with AVB
- examine the status bar
- examine the toolbar (tlbInsurance on frmInsurance)
- examine the listview (lvwInsurance on frmInsurance)
- examine the statusbar (on frmMain)
- examine the tabbed dialog control (sstabPatient on frmPatient)
Discuss VB Auto Center on p. 92
- as a class, design the interface
- as a class, list the main objects that will be necessary
- as a class, build VB Auto Center (or debug your homework copy)
- parent (MDI) form
- splash screen
- child forms
- video inventory
- how does a user "get to" this form from frmMain?
- TreeView
- customer records
(if time) Review Ch. 2 Notes
Homework Assignment:
- Subscribe to the class mailing list.
- Continue working on the VB Auto Center case study on p. 92. You will
have to create your own fictitious data for the ListView on the Auto Inventory
form. Bring this project to class on a floppy disk in a folder named Ch2VBAutoCenter.
It will not be graded next week but my hope is that you will have much of
it completed. Try to follow the Programming Process and use Advanced Vision
and Beyond and Video Bonanza as guides. If you have time, try to add a simple
popup (shortcut) menu.
Copyright © 2001 Curtis Minich. All Rights Reserved.