• λ我爱Aspx >> Asp.Net >> 使用C#编写的一个定时关机程序
  • 使用C#编写的一个定时关机程序

  • :未知  Դ:internet  :2007-5-20 16:43:52  ؼ:c#
  • private System.Windows.Forms.Label labelDateTimeShutdown;

    private System.Windows.Forms.Label labelNow;

    private System.Windows.Forms.Label labelShutdown;

    private System.Windows.Forms.Panel panelParent;

    private System.Windows.Forms.Panel panelChild;

    private System.Windows.Forms.CheckBox checkBox;

    private System.Windows.Forms.Button buttonCancel;

    private System.Windows.Forms.Button buttonInvoke;

    /// <summary>

    /// Required designer variable.

    /// </summary>

    private System.ComponentModel.Container components = null;

    private System.Threading.ThreadStart threadStart;

    private System.Threading.Thread thread;

    [DllImport("user32.dll")] private static extern

    bool SetForegroundWindow(IntPtr hWnd);

    [DllImport("user32.dll")] private static extern

    bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);

    Ҷƪл˵?
  • һƪ使用C#控制远程计算机的服务
    һƪ得到系统进程和结束某个指定的进程