C# .NET - save image from picture box based on user selection location

Asked By ahmed salah on 14-Jun-14 07:44 AM
 using this code to show image in c# 2008

try

{



string[] fileNames = Directory.GetFiles("\\\\192.168.1.5\\Hani");



foreach (string file in fileNames)

{



if (file.Contains(textBox1.Text))

{



//pictureBox1.Image = Image.FromFile(Path.Combine("\\192.168.1.5\\Hani", textBox1.Text) + ".JPEG");

pictureBox1.Image =


Image.FromFile(Path.Combine("\\\\192.168.1.5\\Hani", textBox1.Text)+".JPG");

}


}

}



catch (Exception ex)

{



MessageBox.Show(ex.ToString ());

}

iit is success in display image but how to save picture in hard disk c drive or d or any location
i need to using

pictureBox1.Image.Save(filePath);
but i dont know how to allow employee or user to select location he need to save in it dynamically