Alex Rivera | Logout

Obtain file path of C# save dialog box

Asked 2008-10-07T20:45:47.080
17

I've got a save dialog box which pops up when i press a button. However i dont want to save a file at that point, i want to take the name and place it in the text box next to the button, for the name to be used later.

Can anybody tell me how to obtain the file path from the save dialog box to use it later?

Edit
Report

1 Answer

4

Addressing the textbox...

if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
    this.textBox1.Text = saveFileDialog.FileName;
}
answered 2008-10-07T20:51:15.787

Your Answer