Create a windows form application project.

Assignment Help Programming Languages
Reference no: EM13947838

Create a Windows Form Application project.

1. Create a Form with a text property of Friends

2. Add a Class file to your project and name it Friend

3. In the Friend class declare the following:

o private string firstName;

o private string lastName;

o private string phoneNumber;

o private int month;

o private int day;

4. Write accessors for each of the declared class variables

5. Override the class ToString method to return a string in the following format: FirstName + ',' + LastName + ',' + PhoneNumber + ',' + Month + "," + Day

6. Add a TabControl to the form and size it so that it fills the form

7. Name the first tabPage Entry.

8. On the Entry tabPage add four textboxes to take entry for a first name, last name, birth month and birth day and add a MaskedTextbox to take entry for a phone number formatted as 999-9999.

9. Add an Enter Friend button which will process the entries made in the textboxes; writing each entry to a file and an Exit button which will exit the application

10. Name the second tabPage Read

11. On the Read tabPage place a Read button which will read the file entries written to the file on the Entry tabPage, an Exit button that will call the Entry page exit button click event and a listbox that will display each entry read from the file when the Read button is clicked

12. Name the third tabPage Reminder

13. On the Reminder tabPage place a textbox that will take an input for the birth month entries that will be displayed, a

Reminder button which will read the file entries and display the file entries which have a month value that matches the value entered in the textbox, an Exit button that will call the Entry page exit button click event and a listbox that will display each matching entry read from the file when the Reminder button is clicked

14. At the Form level instantiate a Friend object and declare/instantiate a FileStream/StreamReader and a FileStream/StreamWriter object that will open a Friends.txt file with the FileMode set to OpenCreate, FileAccess set to Read, FileShare set to ReadWrite and FileMode set to Append, FileAccess set to Write and FileShare set to ReadWrite respectively

15. The data entry button will extract the inputs from the textboxes on the Entry tab and will:

o Write the data as a comma delimited record to a .txt file using the Friend object ToString method you overrode in the Friend class; also display a messagebox that displays what was written to the file

o Include a try-catch block that will display a messagebox with error message for any errors encountered in reading from the textboxes and writing to the file

o Clear the write stream buffer

o Clear entries in the textboxes

16. The Read button will accomplish the following:

o Read the file and display in the listbox each record splitting out the fields, eliminating the comma delimiters and placing spaces between the fields

o Reset the file position pointer to the beginning of the file for the next file read

17. The Reminder button will accomplish the following:

o Take a text entry for the birth month to be searched for

o Read the file and display in the listbox each record splitting out the fields, eliminating the comma delimiters and placing spaces between the fields

o The birth month and day will be separated by a "/" when the record(s) is displayed

o Reset the file position pointer to the beginning of the file for the next file read

o Clear the entry in the textbox

18. When clicking out of tabPage 2 and 3 which contain the listboxes clear the display contents of the listboxes

19. When the application is terminated close all open FileStream objects

20. Internal documentation.

Reference no: EM13947838

Questions Cloud

Net cash flow annually in perpetuity : A project will generate $1 million net cash flow annually in perpetuity. If the project costs $7 million, what is the lowest WACC shown below that will make the NPV negative? A-10% B-12% C-14% D-16%
Average balance in accounts payable and accounts receivable : Calvani, Inc., has a cash cycle of 39.5 days, an operating cycle of 55 days, and an inventory period of 23 days. The company reported cost of goods sold in the amount of $355,000, and credit sales were $578,000. What is the company’s average balance ..
Operating-investing or financing cash outflow or inflow : Identify whether each of the following is an operating, investing, or financing cash outflow or inflow or if it is a noncash flow, under GAAP.
What discount rate should the firm use for the project : Gnomes R Us is considering a new project. The company has a debt-equity ratio of .72. The company’s cost of equity is 14.7 percent, and the aftertax cost of debt is 8 percent. The firm feels that the project is riskier than the company as a whole and..
Create a windows form application project. : Add an Enter Friend button which will process the entries made in the textboxes; writing each entry to a file and an Exit button which will exit the application
What is the role of the planned state column : What is the role of the planned state column? Discuss the capacity category and explain the meaning of each measure and its significance.
Summary of the eight steps in ethical decision-making model : Write a 3- to 4-page paper, including the following points: A summary of the eight steps in the ethical decision-making model proposed by Bush et al. (2006). A critical analysis of the ethical decision-making model (i.e., analyze the strengths and w..
Write a command to list all files in current directory : Rewrite the following sequence of commands using sort as a filter. The end result should be a single command line when you are done.
Give an estimate of this common popualtion variance : Give an estimate of this common popualtion variance by pooling the sample variances given. Give an estimate of this common population variance based on the variance of the sample means given.

Reviews

Write a Review

Programming Languages Questions & Answers

  Program display meal cost and tax amount

The program should then display the meal cost,taxAmt, and total bill respectively and use named constants Tax and tip to initialize the tax and the tip values.

  Design a program that displays the acidity level

The decision structure part of the program is missing. It should display the correct solution from the right column of the table.

  Super call for constructor to allot value of attribute

We have given a super call, which does some work of constructor. Your code must complete constructor by allotting the value of g to gpa attribute.

  Discuss the purpose of the php procedures

Discuss the purpose of the PHP procedures that you have written.

  Javascript function to validate a text-field on a form

Write a JavaScript function to validate a text-field on a form that is to hold an email address.

  Create a simulation class in c++

Create a simulation race between the tortoise and the hare. For this project, use random-number generation to move the creatures. To make things more interesting, the animals have to race up the side of a slippery mountain, which could cause them ..

  Write a program to display the duplicate values in an array

Write a program to display the duplicate values in an array.

  Call the functions in the program

Have the main program call these functions to demonstrate how they work. Also, if you could help to explain to me how both constructors can be replaced with one constructor by using a single constructor with default parameters.

  Design and develop a unix file sharing system

Design and develop a UNIX file sharing system. For this task you will be required to develop a simple application in C programming language.

  Give a pseudo-code description

Give a pseudo-code description of the o(n)- time algorithm for computing the power function P(x,n). Also draw the recursion trace of this algorithm for computation of p(2,5)

  Explain modular concepts incorporated in program logic

The title of the report is Kyles Transportation Company and could you also please do the code for the report so that the program will run in Qbasic or Microsoft QuickBASIC

  Program that prompts the user to input the dimensions

Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers. The shipping charges depend on the amount of liquid in the container.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd