private void changePasswordButton_Click(object sender, System.EventArgs e) { using (ChangePasswordDialog dialog = new ChangePasswordDialog()) { dialog.ShowDialog(this); } }