D
damu maddy
Hi every body I need a strange behaviour of SaveAs dialog Box
When i save a file using SaveAs dialog Box Usually the Dialog box closes
after the file is been saved
What i need is that SaveAs Dialog box should not close after hitting the
save button and I should see the saved file in the Dialog box
Any help is Greatly Appreciated
Thanks DAM
The code I use to generate Dialog box is
public void FileSaveAs()
{
Stream myStream;
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
saveFileDialog1.FilterIndex = 2;
saveFileDialog1.RestoreDirectory = true;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
if ((myStream = saveFileDialog1.OpenFile()) != null)
{
String filename = saveFileDialog1.FileName;
myStream.Close();
}
}
}
When i save a file using SaveAs dialog Box Usually the Dialog box closes
after the file is been saved
What i need is that SaveAs Dialog box should not close after hitting the
save button and I should see the saved file in the Dialog box
Any help is Greatly Appreciated
Thanks DAM
The code I use to generate Dialog box is
public void FileSaveAs()
{
Stream myStream;
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
saveFileDialog1.FilterIndex = 2;
saveFileDialog1.RestoreDirectory = true;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
if ((myStream = saveFileDialog1.OpenFile()) != null)
{
String filename = saveFileDialog1.FileName;
myStream.Close();
}
}
}