I tried to change the values with
this.Height
andthis.Width
, but it didn't work after I clicked the button. Any idea why it's not working?The PictureBox inside the Form worked with the same strategy though.
private void clear_ClickButton(object sender, EventArgs e)
{
pictureBox5.Image = null;
pictureBox5.Height = 500;
pictureBox5.Width = 672;
this.Width = 890;
this.Height = 662;
this.MaximizeBox = false;
pictureBox7.Enabled = false;
}