Answer to Question #50520 in C# for ChinuC

Question #50520
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.
1
Expert's answer
2015-01-26T11:58:47-0500
//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!");
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS