C#

C# 시스템 종료하기

아스키의 공부방 2012. 12. 24. 11:00
728x90
반응형

 




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 윈폼
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("ShutDown", "-s");
        }
    }
}

 

 

윈폼.zip

 

윈폼.exe

728x90
반응형