TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ilyas Zahir
NA
86
25.3k
How to hide savefiledialog box c#
Jan 23 2018 11:42 AM
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);
}
}));
Reply
Answers (
7
)
What is Delegates ?
What is the logic behind while loop behavior in this case?