When the application executes for the first time, it should perform the following tasks:
Display a message to the user to specify the path of the file in which the customer details are to
be stored.
//Double-clickon the Load Event in Designer to create this method
private void Form1_Load(object sender, EventArgs e)
{
MessageBox.Show("Specify thepath of the file in which the customer details are to be stored");
OpenFileDialog open = new OpenFileDialog();
if (open.ShowDialog() == DialogResult.OK)
{
string Path = open.FileName;
}
else
{
MessageBox.Show("You have not specified the path of the file!");
}
}