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 10, Problem 4E
Program Plan Intro

Form design:

  • Open Microsoft Visual Studio.
  • Select Visual Basic and click Windows Application.
  • Name the project as “Fence 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.
  • Add a new Visual Basic Class file and name it as “Rectangle.vb”.
  • Click the File menu->Save All.

View of the form design in the IDE:

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

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

ObjectPropertySetting
Form1TextFencing Haven
txtWidthText(Empty)
txtLengthText(Empty)
txtFootCostText(Empty)
lblTotalCostText(Empty)
btnCalcTextCalculate
btnExitTextExit
  • Add label controls to input the values from user and to show the result.
  • Add two button controls, one to display the total cost of fencing and another to exit the program.

Blurred answer
Students have asked these similar questions
using visual studio and C# languange please help with the following In the Chap07 folder of the Student Sample Programs, you will find a file named ChargeAccounts.txt. The file contains a list of a company’s valid charge account numbers. There are a total of 18 charge account numbers in the file, and each one is a 7-digit number, such as 5658845. Create an application that reads the contents of the file into an array or a List. The application should then let the user enter a charge account number. The program should determine whether the number is valid by searching for it in the array or List that contains the valid charge account numbers. If the number is in the array or List, the program should display a message indicating the number is valid. If the number is not in the array or List, the program should display a message indicating the number is invalid.
Microsoft Visual Basic Studio 2017 Please Create an application that allows the user to enter the gender (either F or M) and GPA for any number of students. The application should calculate the average GPA for all students, the average GPA for male students, and the average GPA for female students. Create a Windows Forms application. Use the following names for the project and solution respectively: Final Project and Final Solution. 1. Change the form file’s name to Main Form.vb 2. Change the form’s Name property to frmMain. 3. Change the form’s Font property to Segoe UI, 9pt. 4. Change the form’s MaximizeBox property to False. 5. Change the form’s StartPosition property to Centerscreen. 6. Build the interface and then code the Exit button The application’s interface is shown in the figure below. The list box should list GPAs from 1.0 through 4.0 in increments of 0.5. 7. Display information that you do not want the user to change during run time in a label. Change the following label…
Name SearchIn the Chap07 folder of the Student Sample Programs, you will find the followingfiles:• GirlNames.txt—This file contains a list of the 200 most popular names given to girls born in the United States from 2000 through 2009.• BoyNames.txt—This file contains a list of the 200 most popular names given to boys born in the United States from 2000 through 2009.Create an application that reads the contents of the two files into two separatearrays or Lists. The user should be able to enter a boy’s name, a girl’s name, orboth, and the application should display messages indicating whether the nameswere among the most popular
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
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,