티스토리 뷰
반응형
메인창 닫기 버튼 종료 취소 방법
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
}
--시스탬 종료
System.Diagnostics.Process.Start("ShutDown.exe", "-s -f -t 00");
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
}
--시스탬 종료
System.Diagnostics.Process.Start("ShutDown.exe", "-s -f -t 00");
반응형
'Programming > .Net' 카테고리의 다른 글
Excel C#연동 (0) | 2009.11.04 |
---|---|
MS-Project C#에서 제어 (0) | 2009.11.04 |
C#에서 SQLite3 연결문 (1) | 2009.08.14 |
C#.net MessageBox 활용 (0) | 2009.05.26 |
C# 클립보드에 저장하기 (0) | 2009.04.27 |
공지사항