Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 2, Problem 4E
Program Plan Intro

Form design:

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

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

ObjectPropertySetting
Form1TextRectangle Area
txtLengthText(Empty)
txtWidthText(Empty)
lblSqFeetText(Empty)
lblSqYardsText(Empty)
btnCalcTextCalculate
btnExitTextExit
  • Add two text box controls to input the values of length and width of a rectangle.
  • Add two label controls to display the results of area of rectangle in feet and yards.
  • Add two button controls to calculate the area and to exit the program respectively.

Blurred answer
Students have asked these similar questions
Use Java Programming Language Write a GUI to calculate the number of servings that a circular pizza of a certain diameter will make. The GUI will have the following appearance:   It must include the following features:  The frame title must say 'Pizza Servings Calculator'.  A grid layout will be used for the GUI.  The JLabel title of the GUI will say 'Pizza Servings Calculator' and be in red and will be placed in  grid slot 1.  A JLabel of 'Enter the size of the pizza in inches: ' will be placed in grid slot 2 followed by a JTextField where the pizza size will be entered and have a width of 4.  A JButton will be placed in grid slot 3 and will contain 'Calculate Servings'. A JLabel, initially blank, will be placed in grid slot 4. To execute the GUI, enter a pizza size in the JTextField and click the Calculate Servings button. The Calculate Servings button handler will then execute and calculate the number of servings and display it as shown in the following image:   The number of…
Write an application creating a GUI which diplays a panel with elements of graphics and text. Sliders allow to modify their color (red, green, blue components) and the bacground color. The interface may look like the one below, but can be different as long as its functionality is preserved.
Programming Exercise #2: Grade Create an application that calculates and displays the percentage of students receiving a grade of P (for Passed) and the percentage of students receiving a grade of F (for Failed). Before creating your Planning Chart, consider what information the user will need to enter (if Grade >= 75, PASSED, FAILED).   a. Prepare a Planning Chart for the application. b. Draw a sketch of an appropriate interface. Be sure to follow the GUI design guidelines covered in the chapter. The guidelines are summarized in Figure 2-20 (found on page 66). (If you want to include an image in the interface, you can either use your own image file or download an image file from openclipart.org. When downloading from openclipart.org, be sure to use the SMALL IMAGE (.PNG) button.) c. Create a Windows Forms application. Use the following names for the project and solution, respectively: FamilyName_Grade Project and FamiltyName_Grade Solution. Save the application in the…
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Time Complexity Analysis - How To Calculate Running Time | InterviewBit; Author: InterviewBit;https://www.youtube.com/watch?v=--oxG4Q1PA0;License: Standard YouTube License, CC-BY