private void FormResize(object sender, EventArgs e) { tabControl.Width = this.Width - 40; tabControl.Height = this.Height - 184; }