vbonanza07.htm;
updated September 27, 2002
Video Bonanza Assignment 7
The Video Bonanza firm has hired you as a temporary
programmer consultant from the VB Auto Center.
You're to write a program that will enable the firm to maintain a list of
movie categories. The main form for the
program should look similar to the one shown here:

Project Requirements:
At Design Mode:
- All
buttons shown are enabled and include hot keys (you pick the hot keys).
- The
form must have menus so that a system user can either click a menu option
or click a button. The menu options
are shown in this table. Note the
separator line under the Edit menu.
All menus are enabled and include hot keys as indicated in the
table below.
- The
code for the menus is a Call statement to the code for the buttons. Do not duplicate the programming code
unnecessarily.
|
&File
&Print the
Category List
E&xit
|
&Edit
&Clear
Category Listing
____________
&Add a
Category
&Remove a
Category
&Display Category
Count
|
- Movie
categories are displayed in a drop-down combo box.
- The
categories that should be displayed in the list are: Comedy, Drama, Action, Sci-Fi, and
Horror.
- Keep
the list of movie categories sorted in alphabetic order.
On Startup:
- No movie
category is displayed in the combo box.
During Execution:
- Add a Category button/menu. The system user will enter a new movie
category into the drop down combo box's text box area. Clicking either the button or menu will allow
the system user to save a new movie category to the drop down combo
box.
- If
no movie category has been typed into the combo box's text box area (it
is blank), display an error message – use the MessageBox and
provide an appropriate box caption, message, and icon.
- Do
not allow a blank movie category to be added to the list.
- Do
not allow a duplicate movie category to be added to the list.
- Enable
the Remove a Category and Clear Category Listing button and menu options
if they are disabled (see below).
- Remove a Category button/menu. The system user will select a movie
category then click either the button or menu and the category should be
removed from the list.
- Display
an error message if the system user did not first select a movie category
– use the MessageBox and provide an appropriate box caption,
message, and icon.
- Disable
both the Remove a Category button and menu if the last movie category is
removed from the list (the list is empty).
- Disable
both the Clear Category Listing button and menu if the last movie
category is removed from the list (the list is empty).
- Display Category Count button/menu. Display a message box with the count of
the number of movie categories that are stored in the combo box.
- Clear Category Listing button/menu.
- Clear
all movie categories from the combo box (the list will be empty). Before clearing the list, display a
message box to confirm that the list is to be cleared.
- Disable
both the Remove a Category button and menu if the last movie category is
removed from the list (the list is empty).
- Disable
both the Clear Category Listing button and menu if the last movie
category is removed from the list (the list is empty).
- Print the Category List button/menu.
- Display
a printed listing of the movie categories in the Print Preview dialog
box.
- Include
your name and a heading at the top of the report listing.
- Exit button/menu. Exit the system by closing the form.
See the grading form for additional design requirements.