Visual Basic
06 Check Box Program

Video Instruction

  1. Completed project overview.
  2. Setting up the checkbox array on the form.
  3. Introduction to checkboxes.
  4. Programming the checkbox array. Part 1, Part 2
  5. Changing the textbox and resetting the form for new values.
  6. 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.

  1. Input the coefficients of a quadratic equation f(x) = ax2 + bx + c into textboxes.
  2. Design a checkbox system to allow the user to select any or all of the desired applications from the following list:
    1. Find the discriminant of the quadratic equation when f(x) = 0.
    2. Determine the number and type of solutions when f(x) = 0.
    3. Determine the roots, zeros, or solutions when f(x) = 0 (if they exist.)
    4. Find the vertex of the parabola.
    5. 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.
  3. Allow the user to select the desired boxes. Use a command button to process and display the results.
  4. After the option has been evaluated, the check box should be grayed.
  5. 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

 
51763

 

 
© 2004-2008, Jerel L. Welker
Page Updated: January 15, 2009