★ Must-know
An event-driven program with a graphical user interface should have its user interface designed after the program's purpose is defined.
The latte-selection application opens with a Latte Selection window, displays a pumpkin spice or mocha latte picture when the corresponding button is clicked, and informs the user that a flavored latte was selected when Select Latte is clicked.
Further detail
Choose a flavor, view its picture, then select the latte.
★ Must-know
Further detail
When a program runs, the user interacts with it through its windows and components, which make up its user interface.
The Visual Studio work area contains a tabbed Form1.vb [Design] page with a Windows Form object called Form1.
🔄 Display and pin the Toolbox:
The Properties window describes object characteristics such as color, size, name, and screen position, and its property names appear in Alphabetical view, which many developers find easiest for searching.
🔄 Rename the form file:
🔄 Set the form title:
The form's Size property is set to 730, 700 by entering those values in the Properties window.
🔄 Add the label:
🔄 Name the label:
🔄 Change the label text:
🔄 Set the label font:
🔄 Center the label horizontally:
🔄 Name the PictureBox:
To resize a PictureBox object, enter the desired size beside its Size property and press Enter.
🔄 Add another PictureBox:
To make objects the same size, select the reference object, hold Ctrl while selecting the object to resize, then choose Format > Make Same Size > Both.
To align the PictureBox objects by their lower edges, select both PictureBoxes and choose Format > Align > Bottoms.
To center both PictureBox objects horizontally in the form, select them and choose Format > Center in Form > Horizontally.
A second Button can be added by dragging the Button control from the Toolbox onto the form and releasing it when the red alignment guide indicates that its top aligns with the existing button.
To align buttons vertically, drag one button until blue snap lines appear, adjust its vertical spacing, and release the mouse button.
Save a Visual Studio project by clicking Save All on the Standard toolbar; the first save stores the project in the chosen location with its chosen name.
A Visual Studio project can be opened by double-clicking its solution file, using Open File on the Standard toolbar, or selecting it under File > Recent Projects and Solutions.
Requirements lead to design, then code, test, document, and maintain.
★ Must-know
📌 The Latte Selection program must show pumpkin spice and mocha choices until a type is selected, display the selected latte picture instead of the other picture, and show only one picture at a time.
📌 After a latte selection, the program must show a confirmation, prevent further flavor identification, allow only exiting the window, and permit selection only after a latte type has been chosen.
Further detail
The two types of requirements documentation are a requirements document and a Use Case Definition.
The Latte Selection requirements document was submitted January 23, 2019, and states that the program lets users choose a latte type from two displayed choices.
★ Must-know
📌 A user interface should be easy to use and follow because users will not be satisfied if it is difficult to use.
📌 A well-designed interface feels natural, uses the most appropriate object for each requirement, and uses the same object for the same requirement throughout the program.
Further detail
Developers sometimes spend 25 to 40 percent of program design on the user interface.
Interface designs are often called mock-ups.
The primary interaction methods are:
📌 Interface objects should be arranged in the sequence in which they are used, and the interface should be as simple as possible while retaining all required functionality and remaining intuitive.
★ Must-know
Further detail
For Latte Selection, a Windows Forms App with a Windows Form is appropriate because the application is presented in a window on the screen.
The Latte Selection interface must provide a Select Latte button that displays a confirmation message and an Exit Window button as the only available action after selection.
The Latte Selection interface should include simple instructions so users are not confused while using it.
Take a 24-question practice quiz on Visual Basic Interface Design, with every answer explained.
1. A developer has defined the purpose of an event-driven program with a graphical user interface. What should the developer do next in the design process?
2. In a latte-selection application, a user clicks Mocha and then clicks Select Latte. What should the application display and communicate?
Memorize the key concepts of Visual Basic Interface Design with 63 flashcards.
When should an event-driven program's user interface be designed?
After the program's purpose is defined.
What window opens when the latte-selection application starts?
The Latte Selection window.
What happens when the pumpkin spice or mocha button is clicked?
The corresponding latte picture is displayed.
Upload your class notes and Revizly writes a study guide, a quiz and flashcards in about a minute.
Study guide maker