Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Question
Book Icon
Chapter 9, Problem 4E
Program Plan Intro

Form design:

  • Open Microsoft Visual Studio.
  • Select Visual Basic and click Windows Application.
  • Name the project as “Potter Project”.
  • Store the file in desired location.
  • The created project is now displayed with a form in the name of Form1.
  • Rename the Form1 as “Main Form” and add the necessary components.
  • In property window, change the Form name and add changes for Form elements properties.
  • Click the File menu->Save All.

View of the form design in the IDE:

Programming with Microsoft Visual Basic 2017, Chapter 9, Problem 4E

The form control properties in the properties window are as follows:

ObjectPropertySetting
Form1TextPotter Jr High
lstGradesItemsGrade characters
lstNamesItems(Empty)
lblNumberText(Empty)
btnDisplayTextDisplay
btnExitTextExit
  • Add the list box control to select the grade.
  • Add a list box control and label control to display the students name and number of students.
  • Add two button controls to display the result and exit the program respectively.

Blurred answer