save file from openFileDialog to project folder and path in database
I have Tried This: But Cant Save file in project Folder.
private void button6_Click(object sender, EventArgs e)
{
DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK)
{
String file = openFileDialog1.FileName;
string[] f = file.Split('\\');
string fn = f[(f.Length) - 1];
string dest = @"C:\Users\admin\source\repos\Software of TE\Software of TE\Images\";
File.Copy(file, dest);
}}
Hiten PandyaPosted Apr 26, 2018, 10:38 AM
sarika sarikaaPosted Apr 26, 2018, 5:29 AM
Hiten PandyaPosted Apr 24, 2018, 10:39 AM