ITEEDU

用PicturesBox显示图片

    private void button1_Click(object sender, System.EventArgs e)
    {
        if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            this.pictureBox1.Image = System.Drawing.Bitmap.FromFile(this.openFileDialog1.FileName);
        }
    }