|
|
Visual Basic
06 Check Box Program
Video Instruction
-
- Setting up the checkbox array on the form.
- Introduction to checkboxes.
- Programming the checkbox array. Part 1, Part 2
- Changing the textbox and resetting the form for new values.
- Checkbox summary and final test.
This section will introduce you to the checkbox object
array. The array concept allows the programmer to perform a single
operation on many objects with a for-next loop as is demonstrated in
the example file.
Create a frame which has a check box array with one checkbox for each of the
following programs. Data should be inputted by text box. Clearly direct
the user how to proceed with the program. Make sure that all check boxes have
a default value of unchecked at startup.
Use one form to provide the following program. Save the
form as 06_xxx_chk.
- Input the coefficients of a quadratic equation f(x) = ax2
+ bx + c into textboxes.
- Design a checkbox system to allow the user to
select any or all of the desired applications from the
following list:
- Find the discriminant of the quadratic equation
when f(x) = 0.
- Determine the number and type of solutions when f(x)
= 0.
- Determine the roots, zeros, or solutions when f(x) =
0 (if they exist.)
- Find the vertex of the parabola.
- When this item is selected, use an input box to enter a specific value of x and
determine the corresponding value for f(x) based on the coefficients which are in the text boxes. Note: The value of x from the input must appear in the output as it is no longer visible on the form.
- Allow the user to select the desired boxes. Use a command
button to process and display the results.
- After the option has been evaluated, the check
box should be grayed.
- When new values for "a, b, & c" are
entered, the check boxes should be unchecked and the output reset to null.
Visual Basic Assignment
Page
|
|