private void btnOptions1_Click(object sender, System.EventArgs e) { //Disable this window this.Enabled = false; EditProperties editOptions1 = new EditProperties(); //Show the options1 dialog editOptions1.ShowDialog(); //Enable this window this.Enabled = true; }