BROWSE PICTURES TO PICTURE BOX
private void
button1_Click(object sender, EventArgs e)
{
OpenFileDialog open = new
OpenFileDialog();
open.Filter =
"Image Files(*.jpg; *.jpeg; *.gif;
*.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";
if (open.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image = new Bitmap(open.FileName);
}}
No comments:
Post a Comment