ASp.net

Saturday, September 12, 2015

How Image Upload and save in C# Part 1

1 comment:

  1. private void button1_Click(object sender, EventArgs e)
    {
    try
    {
    openFileDialog1.FileName = "";
    if (openFileDialog1.ShowDialog() == DialogResult.OK)
    {
    pictureBox1.Image = Image.FromFile(openFileDialog1.FileName);
    }
    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.ToString());
    }
    }

    ReplyDelete

MM Online Express | Best product Review and Online Marketing site

MM Online Express | Best product Review and Online Marketing site