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 8, Problem 3E
Program Plan Intro

Form design:

  • Open Microsoft Visual Studio.
  • Select Visual Basic and click Windows Application.
  • Name the project as “Gross Pay 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 8, Problem 3E

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

ObjectPropertySetting
Form1TextGross Pay Calculator
lstCodesItemsPay code values
txtHoursText(Empty)
lblGrossText(Empty)
btnCalcTextCalculate
btnExitTextExit
  • Add a necessary text box control and list box control to get hours and pay code detail.
  • Add a button control to compute the gross pay and add another button to exit the program.

Blurred answer