forum

Home / DeveloperSection / Forums / Save image from picture box to hard disk proplem

Save image from picture box to hard disk proplem

ahmed salah310814-Jun-2014

I 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 ());
}

it is success in display image but how to save picture in hard disk c drive or d or any location


Updated on 16-Jun-2014
computer programmer need help in some subject about programming

Can you answer this question?


Answer

1 Answers

Liked By