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
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…
In this assignment, you have to write down a file comparison application. You can use this chapters codes to create your file. In your first file, you have to add at least 10 accounts such as (please assume the name of the file as orginal_account_file.txt) ID Name Surname Balance Tel eMail 1) In your second file you have to change Balance, Tel and eMail data of at least five records. In your code, such as(please assume the file name as changed_account_file.xt): ID Name Surname Balance Tel eMail 1) "you have to display the changes in each record, and display as separate records to show changed and unchanged records. "Your code also have to create two separate files to save changed records and un-changed records. Such as: File_Unchanged_Records.txt File Changed_Records.txt You have to upload only C.files, the given files have to create these four files (orginal_account_file.txt, changed account_file.txt, File_Unchanged Records.txt, File Changed Records.bxt)
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