31 Ağustos 2012 Cuma

C# ile Bilgisayar Kapatma Programı

C# Dersleri,Kodları
Evet C# ile bilgisayarı kapatmak buyrun kodlar;



01using System; //ecanblog.blogspot.com
02using System.Collections.Generic;
03using System.ComponentModel;
04using System.Data;
05using System.Drawing;
06using System.Linq;
07using System.Text;
08using System.Windows.Forms;
09// ecanblog.blogspot.com 
10namespace pckapatma
11{
12    public partial class Form1 : Form
13    {
14        public Form1()
15        {
16            InitializeComponent();
17        }
18
19        private void btnKapat_Click(object sender, EventArgs e)
20        {
21            timer1.Start();
22        }
23
24        private void timer1_Tick(object sender, EventArgs e)
25        {
26            if ((Convert.ToString(DateTime.Now.Second) == Convert.ToString(numericUpDown1.Value)))
27            
28                if ((Convert.ToString(DateTime.Now.Minute) == Convert.ToString(numericUpDown2.Value)))
29                {
30                    if ((Convert.ToString(DateTime.Now.Hour) == Convert.ToString(numericUpDown3.Value)))
31                    {
32                        System.Diagnostics.Process.Start("shutdown""-f -s");
33                    }
34                }
35            }
36        }
37    }
38}
C# Dersleri,Kodları

İlgili Aramalar:C# Bilgisayar Kapatma Programı, csharp bilgisayarı kapatma, c# ile bilgisayarı kapatma, bilgisayarı kapatma programı, saate göre bilgisayarı kapatma