C Sharp And Ms Access Database Tutorial 11 How To Choose Image From Computer And Display It On Picturebox

C# And Ms Access Database Tutorial #11 – How To Choose Image From Computer And Display It On Picturebox

VIDEO TUTORIAL

C# And Ms Access Database Tutorial #11 – How To Choose Image From Computer And Display It On Picturebox

This Tutorial Shows How To Choose Image From Computer And Display It On Picturebox In C# Windows Forms Application using visual studio 2010.

How To Choose Image From Computer And Display It On Picturebox
How To Choose Image From Computer And Display It On Picturebox
How To Choose Image From Computer And Display It On Picturebox Dialog
How To Choose Image From Computer And Display It On Picturebox Dialog
How To Choose Image From Computer And Display It On Picturebox Loaded
How To Choose Image From Computer And Display It On Picturebox Loaded

C# SOURCE CODE

        private void button1_Click_1(object sender, EventArgs e)
        {
            OpenFileDialog chooseImageFromPCFileDialog = new OpenFileDialog();
            DialogResult chooseImageFromPCDialogResult = chooseImageFromPCFileDialog.ShowDialog();
            if (chooseImageFromPCDialogResult == DialogResult.OK)
            {
                string fileName = chooseImageFromPCFileDialog.FileName;
                pictureBox1.Image = Image.FromFile(fileName);
            }
        }

Leave a Reply

Your email address will not be published. Required fields are marked *