摘要: public partial class WDataGridView : DataGridView { public WDataGridView() { InitializeComponent(); SetStyle(ControlStyles.SupportsTransparentBackColo 阅读全文
posted @ 2020-07-15 14:48 ₯㎕~ 阅读(572) 评论(0) 推荐(0) 编辑
摘要: public static class LogerHelper { #region 创建日志 /// /// <summary>创建错误日志</summary> /// <param name="message">记录信息</param> /// <returns></returns> /// pu 阅读全文
posted @ 2020-06-11 15:17 ₯㎕~ 阅读(202) 评论(0) 推荐(0) 编辑
摘要: private void Mange_TreeView_MouseDown(object sender, MouseEventArgs e) { if (e.Clicks < 2) { if (e.Button == MouseButtons.Right)//判断你点的是不是右键 { Point C 阅读全文
posted @ 2020-04-21 15:34 ₯㎕~ 阅读(163) 评论(0) 推荐(0) 编辑
摘要: public static IntPtr StructToIntPtr(Object obj1) { //得到结构体的大小 int size = Marshal.SizeOf(obj1); //分配结构体大小的内存空间 IntPtr structPtr = Marshal.AllocHGlobal( 阅读全文
posted @ 2020-04-15 10:52 ₯㎕~ 阅读(178) 评论(0) 推荐(0) 编辑
摘要: static class Program { private static Boolean lockState = false; //保存当前的锁定状态 private static System.Windows.Forms.Timer appTimer = new Timer(); //计时器 p 阅读全文
posted @ 2020-01-07 15:17 ₯㎕~ 阅读(668) 评论(0) 推荐(0) 编辑
摘要: private void ThreadLockApp() { Thread th = new Thread(new ThreadStart(ThreadLockAppEx)); th.IsBackground = true; th.Start(); } public delegate void de 阅读全文
posted @ 2020-01-07 13:25 ₯㎕~ 阅读(670) 评论(0) 推荐(0) 编辑
摘要: #region 无边框窗体移动改变大小 [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMess 阅读全文
posted @ 2019-12-20 10:55 ₯㎕~ 阅读(459) 评论(0) 推荐(0) 编辑
摘要: using System.Media; string szPath = Application.StartupPath + “\\SoundFile\\sound.wav”; SoundPlayer soundplayer = new SoundPlayer(); 声音文件路径: soundplay 阅读全文
posted @ 2019-12-13 10:53 ₯㎕~ 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-12-12 14:52 ₯㎕~ 阅读(415) 评论(0) 推荐(0) 编辑
摘要: #region 时间,时间戳转换 /// <summary> /// 时间转换为事件戳 /// </summary> /// <param name="dateTime"></param> /// <returns></returns> public static uint GetTimeStamp 阅读全文
posted @ 2019-12-11 15:46 ₯㎕~ 阅读(295) 评论(0) 推荐(0) 编辑