I think what you are looking for is saveFileDialog...
Something like this maybe.
VB Code:
SaveFileDialog sfn = new SaveFileDialog(); sfn.Filter = "PDF Files (*.pdf)|*.PDF| Files (*.txt)|*.TXT"; sfn.CheckFileExists = false; if (sfn.ShowDialog() == DialogResult.OK) { strmOut = new FileStream(sfn.FileName, FileMode.Create); try { do { i = strmIn.ReadByte(); if (i != -1) strmOut.WriteByte((byte)i); } while (i != -1); } catch (IOException exc) { Console.WriteLine(exc.Message + "File Error"); } strmIn.Close(); strmOut.Close(); }




Reply With Quote