摘要:static class Program { private static Boolean lockState = false; //保存当前的锁定状态 private static System.Windows.Forms.Timer appTimer = new Timer(); //计时器 p 阅读全文
posted @ 2020-01-07 15:17 ₯㎕~ 阅读 (9) 评论 (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 ₯㎕~ 阅读 (13) 评论 (0) 编辑
摘要:#region 无边框窗体移动改变大小 [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMess 阅读全文
posted @ 2019-12-20 10:55 ₯㎕~ 阅读 (5) 评论 (0) 编辑
摘要:using System.Media; string szPath = Application.StartupPath + “\\SoundFile\\sound.wav”; SoundPlayer soundplayer = new SoundPlayer(); 声音文件路径: soundplay 阅读全文
posted @ 2019-12-13 10:53 ₯㎕~ 阅读 (19) 评论 (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 ₯㎕~ 阅读 (94) 评论 (0) 编辑
摘要:#region 时间,时间戳转换 /// <summary> /// 时间转换为事件戳 /// </summary> /// <param name="dateTime"></param> /// <returns></returns> public static uint GetTimeStamp 阅读全文
posted @ 2019-12-11 15:46 ₯㎕~ 阅读 (8) 评论 (0) 编辑
摘要:public static void PtrMoveSize(ref IntPtr pData, int nLength) { if (IntPtr.Size == sizeof(Int64)) pData = new IntPtr(pData.ToInt64() + nLength); else 阅读全文
posted @ 2019-12-11 15:44 ₯㎕~ 阅读 (8) 评论 (0) 编辑
摘要:List<TreeNode> listSearchTreeNodes; private void btn_Search_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBox1.Text.Trim())) { retu 阅读全文
posted @ 2019-12-03 14:23 ₯㎕~ 阅读 (27) 评论 (0) 编辑
摘要:private void Checkedlistbox_ItemCheck(object sender, ItemCheckEventArgs e) { for (int i = 0; i < chkCountry.Items.Count; i++) { if (i != e.Index)//除去当 阅读全文
posted @ 2019-11-27 10:56 ₯㎕~ 阅读 (25) 评论 (0) 编辑
摘要:/// <summary> /// 获取本机IP地址 /// </summary> /// <returns>本机IP地址</returns> public static string GetLocalIP() { try { string HostName = Dns.GetHostName(); 阅读全文
posted @ 2019-11-25 13:40 ₯㎕~ 阅读 (8) 评论 (0) 编辑