Hi,
I have an Windows Form based application. My requirement is to select some Text files from the machine where this application is installed and SaveAs all the files into my Application directory for future references (not required to choose location by user). It is just like in ASP.NET to upload your photo/sign to web server.
Is it a way in Windows Form Based application?
Loading

Amitesh VermaRank #2,535 · 552 reputationPosted Aug 4, 2015, 9:15 PM EDT
Ajay Saini125 reputationPosted Aug 4, 2015, 10:07 PM EDT
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 4, 2015, 11:03 PM EDT
Ajay Saini125 reputationPosted Aug 5, 2015, 12:28 AM EDT
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 5, 2015, 12:56 AM EDT
Ajay Saini125 reputationPosted Aug 5, 2015, 2:53 AM EDT
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 5, 2015, 3:19 AM EDT
{
try {
Bitmap b = new Bitmap("name of the file");
b.Save("path of the folder to save");
Bitmap b = new Bitmap(@"C:\Documents and Settings\Desktop\7506.jpg");
b.Save(@"C:\Extract\test.jpg");
}
catch( Exception ex )
{
MessageBox .Show (ex.Message );
}
}