can someone help.. i can see the file when i click the save button on my folder.. can you help me...
{
SaveFileDialog dialog = new SaveFileDialog();
saveFileDialog1.ShowDialog();
saveFileDialog1.InitialDirectory = @"C:\sample";
saveFileDialog1.Title = "Browse a file";
saveFileDialog1.DefaultExt = "txt";
saveFileDialog1.Filter = "Text Files (*.txt)|*.txt| PDF File (*.pdf)|*.pdf";
saveFileDialog1.FilterIndex = 2;
saveFileDialog1.RestoreDirectory = true;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
textBox1.Text = saveFileDialog1.FileName;
}
}