using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices ;
using System.Text ;
using System.IO;
namespace Text
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox TxtTime;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.DateTimePicker SetupDate;
private System.Windows.Forms.DateTimePicker SetupTime;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button ButClose;
private System.Windows.Forms.Button ButReOpen;
private System.Windows.Forms.Button ButCancle;
private System.Windows.Forms.Button ButReLogin;
private System.Windows.Forms.Timer timer1;
private System.ComponentModel.IContainer components;
[ DllImport("user32") ]
public static extern long SetWindowPos(long hwnd , long hWndInsertAfter, long X , long y , long cx, long cy, long agslong) ;
[ DllImport("user32") ]
public static extern long ExitWindowsEx(long uFlags, long erved ) ;
[ DllImport("shell32") ]
public static extern long ShellAbout(long uFlags, long wReserved ) ;
long dwReserved ;
const int SHUTDOWN = 1 ;
const int REBOOT = 2 ;
const int LOGOFF = 0 ;
long sh ;
int counter , n ; 这是调用的API函数,
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices ;
using System.Text ;
using System.IO;
namespace Text
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox TxtTime;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.DateTimePicker SetupDate;
private System.Windows.Forms.DateTimePicker SetupTime;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button ButClose;
private System.Windows.Forms.Button ButReOpen;
private System.Windows.Forms.Button ButCancle;
private System.Windows.Forms.Button ButReLogin;
private System.Windows.Forms.Timer timer1;
private System.ComponentModel.IContainer components;
[ DllImport("user32") ]
public static extern long SetWindowPos(long hwnd , long hWndInsertAfter, long X , long y , long cx, long cy, long agslong) ;
[ DllImport("user32") ]
public static extern long ExitWindowsEx(long uFlags, long erved ) ;
[ DllImport("shell32") ]
public static extern long ShellAbout(long uFlags, long wReserved ) ;
long dwReserved ;
const int SHUTDOWN = 1 ;
const int REBOOT = 2 ;
const int LOGOFF = 0 ;
long sh ;
int counter , n ; 这是调用的API函数,
解决方案 »
- 怎么把.c后缀的代码封成dll方便我c#调用?
- ABC三个整数,取值0到2,求所有情况
- 如何获取客户端IP地址-如网易评论里的?
- 关于在使用http代理上网 ,用FtpWebResponse从FTP下载文件的问题。
- progressbar,用另外一线程控制progressbar进度反映程序查询数据库的进度?
- 下午结的贴,还是有问题
- 求一工资管理系统源码(C#)
- 关于索引的问题~
- DATATABLE.DefaultView.Sort对数据表排序,为什么对字母大小写不能正确排序
- winform中批量增加
- 在C#中开发WEB,如何显示提示
- 如何实现竖排的工具栏?像Visul studio 的工具箱一样?
http://www.yesky.com/20021118/1640321.shtmlhope it helps