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