if (MessageBox.Show("확인 취소 테스트", "확인", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
     //확인시 내용
     MessageBox.Show("확인버튼 누름");
}

'Programming > C#' 카테고리의 다른 글

C# ListView 선택된 아이템 가져오기  (0) 2020.01.29
c# Mysql  (0) 2020.01.29
c# textbox 비밀번호  (0) 2020.01.29
c# ini  (0) 2020.01.29
c# 시리얼통신  (0) 2020.01.29

+ Recent posts