6. Slide 6
How the Invoice Total form works
• The user enters the subtotal into a text box, and the discount percent, discount
amount, and total are displayed in label controls. The discount percent is a function
of the amount of the subtotal.
• After entering a subtotal, the user can click the Calculate button to calculate the
discount percent, discount amount, and the total. Alternatively, the user can press
the Enter key to perform the calculation.
• To close the form and end the application, the user can click the Close button in the
upper right corner of the form or on the Exit button. Alternatively, the user can
press the Esc key to exit from the form.
• User can press Alt+C to access the Calculate button.
• User can press Alt+X to access the Exit button.
9. Slide 9
How to select and work with controls (basics)
• To select a control on a form, click on it. Careful…Don’t double
click or you’ll end up in the code editor.
• To move a control, drag it.
• To size a selected control, drag one of its handles.
• To select more than one control, hold down the Shift or Ctrl key
as you click on each control. Or, click on a blank spot in the form
and then dragging around the controls.
10. Slide 10
How to select and work with controls (Fancy Stuff)
• To align, size, or space a group of selected controls, click on a control
to make it the primary control. Then, use the commands in the Format
menu or the buttons on the Layout toolbar to align, size, or space the
controls relative to the primary control.
• You can also size all of the controls in a group by sizing the primary
control in the group. And you can drag any of the selected controls to
move all the controls.
• To change the size of a form to accommodate the controls, click on
the form and then drag it by one of its handles.
11. Slide 11
How to set properties (continued)
• When you click on a property in the Properties window, a brief
explanation of the property appears in a pane at the bottom of the
window. For more information, press F1 to display the help
information for the property.
• You can use the first two buttons at the top of the Properties
window to sort the properties by category or alphabetically.
• You can use the plus and minus signs displayed to the left of some
of the properties and categories in the Properties window to
expand and collapse the list of properties.
Note
• If a description isn’t displayed when you click on a property in the
Properties window, right-click on the window and select
Description from the shortcut menu.
28. Slide 28
In-Class Activity
• Create the following form
– Note:
• Form title
• Justification of fields
• The “Enter” key and the Alt+C keys do the same
thing as pressing the “Calculate Letter Grade”
button
• The “Esc” key and Alt+X keys do the same thing as
pressing the “Exit” button
• Don’t forget the tab order.
– We’ll work on this program again later
Text box
Label
29. Slide 29
In-Class Activity
• Create the following form
– Note:
• Form title
• Justification of fields
• The “Enter” key and the Alt+C keys do the same
thing as pressing the “Calculate Grand Total” button
• The “Esc” key and Alt+X keys do the same thing as
pressing the “Exit” button
• Don’t forget the tab order
– We’ll work on this program again later
Text boxes
Read Only
Text Boxes
30. Slide 30
In-Class Activity
• Create the following form
– Note:
• Form title
• Justification of fields
• The “Enter” key and the Alt+P keys do the same
thing as pressing the “Project Student Population”
button
• The “Esc” key and Alt+X keys do the same thing as
pressing the “Exit” button
• Don’t forget the tab order
– We’ll work on this program again later
Text boxes
Read Only
Text Box
31. Slide 31
In-Class Activity
• Create the following form
– Note:
• Form title
• Justification of fields
• The “Enter” key and the Alt+C keys do the same
thing as pressing the “Convert to Numeric Only”
button
• The “Esc” key and Alt+X keys do the same thing as
pressing the “Exit” button
• Don’t forget the tab order
– We’ll work on this program again later
Read Only
Text Box
Text box