Click here to Skip to main content
15,945,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,

I have textbox on my page contains file path ,when i click on that path, i want to open dialog box which should ask for open or save options, same like when we open email attachment dialog.

Any link ?

Thanks in advnace
Ankita Mali
Updated 3-Jul-11 19:08pm

Try this code on button click event:
OpenFileDialog oo = new OpenFileDialog();
DialogResult da = oo.ShowDialog();
if (da != DialogResult.Cancel)
xthup = oo.FileName;

MessageBox.Show("Please save Scan Image wherever you want to store ");
SaveFileDialog saveFileDia = new SaveFileDialog();
saveFileDia.Filter = "jpeg pictures|*.jpg";
if (saveFileDia.ShowDialog() == DialogResult.OK)
string sa = saveFileDia.FileName.ToString();

this.saveJpeg(saveFileDia.FileName, new Bitmap(this.img), 85L);

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900