PictureBox control allows you to display an image. In this tutorial, you will learn how to browse and display an image to Picture Box control in Windows Forms Application.

You need to create a simple UI that allows you to select an image, then show the image that you select to PictureBox control.

c# picture box

Add code to handle the button click event as below

private void btnImageFile_Click(object sender, EventArgs e)
{
    using (OpenFileDialog ofd = new OpenFileDialog() { Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp" })
    {
        if (ofd.ShowDialog() == DialogResult.OK)
        {
            //display your image file in picture box
            pictureBox.Image = new Bitmap(ofd.FileName);
        }
    }
}

The OpenFileDialog allows you to select image files with image filters, based on restrict user to select only valid image file.