摘要: 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 ₯㎕~ 阅读(271) 评论(0) 推荐(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 ₯㎕~ 阅读(705) 评论(0) 推荐(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 ₯㎕~ 阅读(931) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取本机IP地址 /// </summary> /// <returns>本机IP地址</returns> public static string GetLocalIP() { try { string HostName = Dns.GetHostName(); 阅读全文
posted @ 2019-11-25 13:40 ₯㎕~ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: try { string str = System.Windows.Forms.Application.StartupPath + @"\ocx\ceshi.ocx";//路径名 Process p = new Process(); p.StartInfo.FileName = "regsvr32" 阅读全文
posted @ 2019-11-21 14:30 ₯㎕~ 阅读(137) 评论(0) 推荐(0) 编辑
摘要: //nSize 为总长度//pImageData 为总数据//nImageSize //一个图片的长度 byte[] _bytes = new byte[nImageSize];// //IntPtr infosIntptr = Marshal.AllocHGlobal(pImageData); Marshal.Copy(pImageData, _bytes, 0, nImageSize);//复 阅读全文
posted @ 2019-10-30 11:22 ₯㎕~ 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: 欢迎加群交流 QQ群 830426796 用 System.Drawing.Drawing2D.GraphicsPath 和 Region 类联合起来,然后用 Region.IsVisible(point) 函数,可以判断点是否在多边形区域内。 阅读全文
posted @ 2019-10-14 15:35 ₯㎕~ 阅读(2224) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 从图片中截取一部分图片 /// </summary> /// <param name="fromImagePath">来源图片地址</param> /// <param name="nX">从偏移X坐标位置开始截取</param> /// <param name="nY">从偏移Y坐标位置开始截取</param> /// <param name="toImage 阅读全文
posted @ 2019-10-14 12:49 ₯㎕~ 阅读(2587) 评论(0) 推荐(0) 编辑
摘要: 欢迎加群交流 QQ群 830426796 阅读全文
posted @ 2019-09-10 18:14 ₯㎕~ 阅读(548) 评论(2) 推荐(0) 编辑
摘要: 欢迎加群交流 QQ群 830426796 阅读全文
posted @ 2019-08-26 10:15 ₯㎕~ 阅读(1013) 评论(0) 推荐(0) 编辑