private void SetWidthHeightHandler(object sender, EventArgs e) { SetSizeForm form = new SetSizeForm(this.Width, this.Height); if (this.TopMost) { form.TopMost = true; } if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Size size = form.GetNewSize(); this.Width = size.Width; this.Height = size.Height; } }