摘要:
public partial class WDataGridView : DataGridView { public WDataGridView() { InitializeComponent(); SetStyle(ControlStyles.SupportsTransparentBackColo 阅读全文
摘要:
public static class LogerHelper { #region 创建日志 /// /// <summary>创建错误日志</summary> /// <param name="message">记录信息</param> /// <returns></returns> /// pu 阅读全文
摘要:
private void Mange_TreeView_MouseDown(object sender, MouseEventArgs e) { if (e.Clicks < 2) { if (e.Button == MouseButtons.Right)//判断你点的是不是右键 { Point C 阅读全文
摘要:
public static IntPtr StructToIntPtr(Object obj1) { //得到结构体的大小 int size = Marshal.SizeOf(obj1); //分配结构体大小的内存空间 IntPtr structPtr = Marshal.AllocHGlobal( 阅读全文
摘要:
static class Program { private static Boolean lockState = false; //保存当前的锁定状态 private static System.Windows.Forms.Timer appTimer = new Timer(); //计时器 p 阅读全文
摘要:
private void ThreadLockApp() { Thread th = new Thread(new ThreadStart(ThreadLockAppEx)); th.IsBackground = true; th.Start(); } public delegate void de 阅读全文
摘要:
#region 无边框窗体移动改变大小 [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMess 阅读全文
摘要:
using System.Media; string szPath = Application.StartupPath + “\\SoundFile\\sound.wav”; SoundPlayer soundplayer = new SoundPlayer(); 声音文件路径: soundplay 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Text; 7 阅读全文
摘要:
#region 时间,时间戳转换 /// <summary> /// 时间转换为事件戳 /// </summary> /// <param name="dateTime"></param> /// <returns></returns> public static uint GetTimeStamp 阅读全文