WinForm控件Dock属性设置会遮盖其他控件的解决

摘要: 在被遮盖住的控件上,右击弹出快捷菜单,然后选择“置于顶层”。 阅读全文
posted @ 2019-03-22 14:16 qq1151219115 阅读(355) 评论(0) 推荐(1) 编辑

C# 扩展方法

摘要: https://docs.microsoft.com/zh-cn/dotnet/csharp/programming-guide/classes-and-structs/extension-methods 阅读全文
posted @ 2018-08-09 14:14 qq1151219115 阅读(112) 评论(0) 推荐(0) 编辑

C# Collection 排序

摘要: Collection<int> aa = new Collection<int>(); aa.Add(1); aa.Add(2); aa.Add(3); aa.Add(1); int[] arr = new int[aa.Count]; aa.CopyTo(arr, 0); int[] bb = a 阅读全文
posted @ 2018-08-09 14:06 qq1151219115 阅读(392) 评论(0) 推荐(0) 编辑

ListView添加图片文字项

摘要: 1)listview 控件 结合 imagelist 控件 实现类似效果. 2)添加 imagelist 控件 images 属性,点击后面的... 添加相应图片. 3)点listview,查看其属性,LargeImageList 和 SmallImageList 分别是设置大小视图的图片集合的,你 阅读全文
posted @ 2018-07-13 16:54 qq1151219115 阅读(250) 评论(0) 推荐(0) 编辑

halcon 图片加载和设置XY轴滑动块的先后顺序

摘要: //必须先加载图片,然后执行 hWndControl.setGUICompRangeX( new int[]{ XTrackBar.Minimum, XTrackBar.Maximum}, ... 阅读全文
posted @ 2018-07-11 10:55 qq1151219115 阅读(178) 评论(0) 推荐(0) 编辑

C#即时释放内存

摘要: using System;using System.Diagnostics;using System.Runtime.InteropServices;[DllImport("kernel32.dll")]private static extern bool SetProcessWorkingSetS 阅读全文
posted @ 2017-06-13 16:31 qq1151219115 阅读(215) 评论(0) 推荐(0) 编辑

NI Vision ClampRake修改

摘要: 也可以直接在C盘模板中直接修改,模板路径: C:\Program Files (x86)\National Instruments\Vision Assistant\CG\Visual Studio Project\CS修改后,以后可以不用修改public static PointContour I 阅读全文
posted @ 2017-06-08 11:13 qq1151219115 阅读(131) 评论(0) 推荐(0) 编辑

CListCtrl颜色设置

摘要: 动态改变listctrl 单元格背景及文字颜色 m_listshow.InsertColumn( 0, "ID", LVCFMT_LEFT, 40 );//插入列 m_listshow.InsertColumn( 1, "NAME", LVCFMT_LEFT, 50 ); int nRow = m_... 阅读全文
posted @ 2015-02-09 22:36 qq1151219115 阅读(687) 评论(0) 推荐(0) 编辑