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 PandyaRank #1,237 · 1.4K reputationPosted Apr 24, 2018, 6:39 AM EDT
sarika sarikaa64 reputationPosted Apr 26, 2018, 1:29 AM EDT
Hiten PandyaRank #1,237 · 1.4K reputationPosted Apr 26, 2018, 6:38 AM EDT