Question
Chpt. 9 pg 604, prb. 7 E-Mail Address Book (in Visual C#), From Starting Out With Visual C#, Gaddis 4th edition: I have created a
Chpt. 9 pg 604, prb. 7 E-Mail Address Book (in Visual C#), From Starting Out With Visual C#, Gaddis 4th edition:
I have created a .txt file in Visual Studio with five names, emails and address, called PhoneBook.txt.:
So far only have errors in attempts.
button1 is Create List on the Form, button2 is Exit
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace Email_Address_Book { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) {
}
private void button2_Click(object sender, EventArgs e) {
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e) {
} } }
Thanks-
7. E-Mail Address Book Create an application with a class named PersonEntry. The PersonEntry class should have properties for a person's name, e-mail address, and phone number. Also, create a text file that contains the names, e-mail addresses, and phone numbers for at least five people. When the application starts, it should read the data from the file and create a PersonEntry object for each person's data. The PersonEntry objects should be added to a List, and each person's name should be displayed in a list box on the application's main form. When the user selects a name from the list box, a second form should appear displaying that person's name, e-mail address, and phone numberStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started