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

Form design:

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

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

ObjectPropertySetting
Form1TextRestaurant Tip
PictureBox1ImageWaiter.png
txtBillText(Empty)
txtPercentageText(Empty)
lblTipText(Empty)
btnCalcTextCalculate
btnExitTextExit
  • Add a picture box control to show the demo image of waiter.
  • Add two text box controls to input the value of bill and tip percentage.
  • Add two button controls, one to calculate the tip percentage and another to exit the program.

Blurred answer
Students have asked these similar questions
If Option Strict is set to On, which of the following statements assigns the sum of two Integer variables to the Text property of the lblTotal control? a. lblTotal.Text = (intN1 + intN2).ToString b. lblTotal.Text = intN1.ToString + intN2.ToString c. lblTotal.Text = intN1 + intN2.ToString d. lblTotal.Text = ToString(intN1 + intN2)
In this exercise, you modify the Cerruti Company application from this lesson. Use Windows to make a copy of the Cerruti Solution folder from this lesson. Rename the copy Modified Cerruti Solution. Open the Cerruti Solution (Cerruti Solution.sln) file contained in the Modified Cerruti Solution folder. Open the designer and Code Editor windows. Modify the code so that the GetFwt function (rather than btnCalc_Click procedure) determines the selected radio button. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.

Chapter 3 Solutions

Programming with Microsoft Visual Basic 2017

Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning