guys, i want to save my pictures in silent i mean without showing the save file box
here is my code.
string path = textBox1.Text.ToString();
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "jpg|*.jpg";
saveFileDialog1.InitialDirectory = path;
saveFileDialog1.AddExtension = false;
saveFileDialog1.FileName = fileName;
saveFileDialog1.OverwritePrompt = false;
saveFileDialog1.DefaultExt = ".jpg";
this.Invoke(new MethodInvoker(delegate ()
{
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
Uri realLink = new Uri(link);
WebClient wc = new WebClient();
wc.DownloadFileAsync(realLink, saveFileDialog1.FileName);
}
}));

Nilesh ShahRank #42 · 34.2K reputationPosted Jan 23, 2018, 12:20 PM EST
Ilyas Zahir94 reputationPosted Jan 23, 2018, 1:44 PM EST
Altaf AnsariRank #1,045 · 1.8K reputationPosted Jan 23, 2018, 6:10 PM EST
Ilyas Zahir94 reputationPosted Jan 23, 2018, 10:19 PM EST
Altaf AnsariRank #1,045 · 1.8K reputationPosted Jan 23, 2018, 10:29 PM EST
Ilyas Zahir94 reputationPosted Jan 23, 2018, 11:28 PM EST
in
Altaf AnsariRank #1,045 · 1.8K reputationPosted Jan 23, 2018, 11:52 PM EST