private void ScriptEditor_Resize(object sender, EventArgs e) { if (this.ClientSize.Width > 50) { cmbFunctions.Width = this.ClientSize.Width - cmbFunctions.Left - 5; } }