Guaranteed Hits to your web site!












Learn Visual Basic 6.0


4. More Exploration of the Visual Basic Toolbox


Exercise 4: Student Database Input Screen


You did so well with last week�s assignment that, now, a school wants you to develop the beginning structure of an input screen for its students. The required input information is:

  1. Student Name
  2. Student Grade (1 through 6)
  3. Student Sex (Male or Female)
  4. Student Date of Birth (Month, Day, Year)
  5. Student Picture (Assume they can be loaded as bitmap files)

Set up the screen so that only the Name needs to be typed; all other inputs should be set with option buttons, scroll bars, and common dialog boxes. When a screen of information is complete, display the summarized profile in a message box. This profile message box should resemble this:


Student Database



Note the student�s age must be computed from the input birth date - watch out for pitfalls in doing the computation. The student�s picture does not appear in the profile, only on the input screen.

My Solution:

Form:
Properties:
Code: