• 大小: 0.16M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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;
using System.Data.OleDb;
using System.Management;

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

        private void button1_Click(object sender EventArgs e)
        {
            CloseComputer(“Shutdown“);
        }

        private void textBox1_KeyPress(object sender KeyPressEventArgs e)
        {
            if (e.KeyChar == 13 && textBox1.Text != ““)
                textBox2.Focus();
        }

        private void textBox2_KeyPress(object sender KeyPressEventArgs e

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         938  2009-02-10 16:50  sj\01\ShutDownComputer\ShutDownComputer.sln
     文件       35840  2009-02-10 16:55  sj\01\ShutDownComputer\ShutDownComputer.suo
     文件        2301  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\Form1.cs
     文件        7217  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\Form1.designer.cs
     文件        5814  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\Form1.resx
     文件         497  2009-02-10 16:50  sj\01\ShutDownComputer\ShutDownComputer\Program.cs
     文件        3825  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\ShutDownComputer.csproj
     文件       11264  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\bin\Debug\ShutDownComputer.exe
     文件       22016  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\bin\Debug\ShutDownComputer.pdb
     文件       14328  2009-02-10 16:55  sj\01\ShutDownComputer\ShutDownComputer\bin\Debug\ShutDownComputer.vshost.exe
     文件         907  2009-02-10 16:55  sj\01\ShutDownComputer\ShutDownComputer\obj\Debug\ShutDownComputer.csproj.FileListAbsolute.txt
     文件         847  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\obj\Debug\ShutDownComputer.csproj.GenerateResource.Cache
     文件       11264  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\obj\Debug\ShutDownComputer.exe
     文件         180  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\obj\Debug\ShutDownComputer.Form1.resources
     文件       22016  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\obj\Debug\ShutDownComputer.pdb
     文件         180  2009-02-10 16:54  sj\01\ShutDownComputer\ShutDownComputer\obj\Debug\ShutDownComputer.Properties.Resources.resources
     文件        1388  2009-02-10 16:50  sj\01\ShutDownComputer\ShutDownComputer\Properties\AssemblyInfo.cs
     文件        2882  2009-02-10 16:50  sj\01\ShutDownComputer\ShutDownComputer\Properties\Resources.Designer.cs
     文件        5612  2009-02-10 16:50  sj\01\ShutDownComputer\ShutDownComputer\Properties\Resources.resx
     文件        1101  2009-02-10 16:50  sj\01\ShutDownComputer\ShutDownComputer\Properties\Settings.Designer.cs
     文件         249  2009-02-10 16:50  sj\01\ShutDownComputer\ShutDownComputer\Properties\Settings.settings
     文件         932  2009-02-10 16:56  sj\02\RebootComputer\RebootComputer.sln
     文件       35840  2009-02-10 17:00  sj\02\RebootComputer\RebootComputer.suo
     文件        2297  2009-02-10 16:59  sj\02\RebootComputer\RebootComputer\Form1.cs
     文件        7219  2009-02-10 16:58  sj\02\RebootComputer\RebootComputer\Form1.designer.cs
     文件        5814  2009-02-10 16:58  sj\02\RebootComputer\RebootComputer\Form1.resx
     文件         495  2009-02-10 16:55  sj\02\RebootComputer\RebootComputer\Program.cs
     文件        3821  2009-02-10 16:58  sj\02\RebootComputer\RebootComputer\RebootComputer.csproj
     文件       11264  2009-02-10 16:59  sj\02\RebootComputer\RebootComputer\bin\Debug\RebootComputer.exe
     文件       22016  2009-02-10 16:59  sj\02\RebootComputer\RebootComputer\bin\Debug\RebootComputer.pdb
     文件       14328  2009-02-10 16:59  sj\02\RebootComputer\RebootComputer\bin\Debug\RebootComputer.vshost.exe
............此处省略43个文件信息

评论

共有 条评论