A
Al
I'm using visual C# 2005 Express Edition and I would like to open the
image in the picture box, without make the picture box larger. For the
moment, the code is:
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.ShowDialog();
Image img = Image.FromStream(openFileDialog1.OpenFile());
pictureBox1.Image = img;
pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
//but this only modifies the size of the pictureBox
}
image in the picture box, without make the picture box larger. For the
moment, the code is:
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.ShowDialog();
Image img = Image.FromStream(openFileDialog1.OpenFile());
pictureBox1.Image = img;
pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
//but this only modifies the size of the pictureBox
}