private void UserSaveFormButton_Click(object sender, EventArgs e) { using (var f = new UserSaveForm()) { f.ShowDialog(); } }
private void btnUserSave_Click(object sender, EventArgs e) { using (UserSaveForm userSaveForm = new UserSaveForm()) { //処理が進む //userSaveForm.Show(); //処理が止まる userSaveForm.ShowDialog(); } }