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
Dorababu Meka
226
8.3k
1.7m
Get the path in the required form
Jun 19 2010 1:37 AM
Hi all i have written a code to save the file in a selected folder by setting the path
This is my code on main form
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
/Stream myStream = null;
FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog();
if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
{
try
{
String s = folderBrowserDialog1.SelectedPath;
}
catch (Exception ex)
{
MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
}
}
}
Now i am having a separate form form on that form i am having some text boxes where i can fill some information and save it. When i click on save the file should be saved to the target folder he specified previously(Sample above code) any idea please
Reply
Answers (
1
)
Set a Path to save file
Adding controls to child form