日期:2014-05-18 浏览次数:20640 次
OpenFileDialog od = new OpenFileDialog(); if (od.ShowDialog(this) == DialogResult.OK) { try { Image img = Image.FromFile(od.FileName); this.pictureBox1.Size = img.Size; this.pictureBox1.Image = img; } catch (Exception ex) { MessageBox.Show(ex.Message); } }