CS252. User Interface Design

Program 4 - Managing Interface Components

Due 11:59 PM, Monday, February 14

Download the Prog4 program (Prog4.vbp and frmProg4.frm; or as a single file in prog4.zip). To see the form, you may have to click on the form in the Project Explorer window. You may also have to resize the white window behind the form in order to see the full size of the form.

The program consists of a form with a PictureBox, colored black, and a ListBox to hold messages. Please do not resize any of these objects while completing the assignment.

You will be graded on things such as spelling, choice of words (where you are allowed to choose them), choice of access and shortcut keys, etc., in addition to the completeness of your assignment.


Learning about New Controls

This assignment deals with a number of controls not included in the book. You'll want to learn how to use the Object Browser to find out more about then: Since the Working Version doesn't have online help, this may be the best way for you to find additional information on VB controls, methods, and constants.


1. Add a Second Form with a Different Cursor

Many applications begin by displaying a product startup panel as the program is loading. Add one with the following steps:


2. Add a Timeout Mechanism

While it's a good idea to let the user dismiss the startup panel with a keystroke (especially with <ESC>), it should also be possible to make it go away on its own. Do this by adding a Timer control.


3. Add Menus and Related Objects

Use the Webpage on Creating and Managing Menus to accomplish the following changes. Now add some code to handle menu events.


4. Animate the Display

Animation is easy using the Timer control. For this assignment, use a timer to make the background of the PictureBox blink. In the timer event handler, write the code to do the following: Set the Timer interval to some reasonable value. Run the program and watch the background blink. It should work even if you change the starting background from black to, say, green.

Now add user control over this feature. Create an Options menu with a single item, "Blinking". Start out with this item checked (indicating that blinking is enabled). When the menu item is clicked, the checkmark should disappear and the screen should stop blinking. (Hint: toggle both the Checked property of the menu item and the Enabled property of the Timer rather than setting them explicitly to True or False.)


5. Add a Toolbar

Use the Webpage on Creating and Managing Toolbars to accomplish the following changes.


Turn in the whole project group as a single unit by using WinZip (available on all the CS NT's) to package up the entire directory into a single file for submission.