private void controlAccountsBut_Click(object sender, EventArgs e) { ControlAccounts controlAcc = new ControlAccounts(); controlAcc.Owner = this; controlAcc.ShowDialog(); }