private void btnOptions2_Click(object sender, System.EventArgs e) { //Disable this window this.Enabled = false; EditProperties2 editOptions2 = new EditProperties2(); //Show the options2 dialog editOptions2.ShowDialog(); //Enable this window this.Enabled = true; }