private void expand_CheckedChanged(object sender, EventArgs e) { if (this.expand.Checked) this.Height = 287; else this.Height = 20; }