摘要:using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Windows.Form
阅读全文
随笔分类 - 003 C# / 001 Winform控件使用
Winform控件使用
摘要:LvLogHelper.GetInstance(this.lbLog).PrintLog("初始化程序完成"); LvLogHelper.GetInstance().PrintLog("请连接综测仪表"); LvLogHelper.GetInstance().PrintLog("请加载测试用例");
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Reflection; using S
阅读全文
摘要:第一步,创建Winfrom窗体界面 第二步,Nuget安装CefSharp--67版本为例 第三步,实现,如下所示: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version
阅读全文
摘要:using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; using System.Text; using System.Windows
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace ZB.QueueSys.Comm
阅读全文
摘要:第一步:创建用于排序帮助类 using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; namespace ZB.QueueSys.Common { pub
阅读全文
摘要:代码如下: using System; using System.Drawing; using System.Windows.Forms; namespace KK.ButtonLable { public partial class Form1 : Form { public Form1() {
阅读全文
摘要:Winform中 使用Cursor 1.放弃进度条、动态进度图片等方式实现用户体验优化方式(主要是优化用户等待体验),建议使用方式? 答:对于From或者Control而言,其提供了Cursor属性设置即可. 例如: this.Cursor = Cursors.WaitCursor; Display
阅读全文
摘要:处理方式:布局挂起 启用窗体双缓存 CheckForIllegalCrossThreadCalls = false; SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true)
阅读全文
摘要:帮助类: 使用方式:
阅读全文
摘要:#region 窗体移动 [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr hwnd, int wM...
阅读全文
摘要:第一步:添加DataGridView、Tooltip控件,略 第二步:设置ToolTip 相关属性,略,参考下图 第三步:DataGridView 添加 CellMouseEnter、CellMouseLeave事件,如下所示: 注:需进行DataGridView控件部分属性进行设置(另外获取单元格
阅读全文
摘要:this.FormBorderStyle = FormBorderStyle.None; this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height); this.WindowS...
阅读全文
摘要:简介 Chart图标根据实际使用情况,部分图表适用于多组数据的数据分析统计功能,例如柱状图;部分图表适用于单组数据的数据分析统计,例如饼状图。 主要属性 注意使用: Chart图表的如下属性:Legend、Series、ChartArea. Series属性,建议根据实际数据动态添加; Legend
阅读全文
摘要:第一:添加列标题时,添加两个空格——用于显示复选框; 第二:实现列标题添加复选框,代码如下: 运行效果如下:
阅读全文
摘要:实现方式一: 通过代码方式实现如下所示: 实现方式二: 通过绑定ImageList控件实现,如下所示: 操作步骤:第一步,工具箱中拖动ImageList控件;第二步,ImageList控件Images属性添加图片集合;第三步,TreeView控件绑定ImageList属性; 第四步,代码如下所示:
阅读全文
摘要:/// <summary> /// 获取TableLayoutPanel指定行的高度 /// </summary> /// <param name="layout">TableLayoutPanel</param> /// <param name="row">行号</param> /// <retu
阅读全文
摘要:1.Lablelable添加图片,解决图片和字体重叠? Text属性添加足够空格即可,显示效果如下所示: 2.根据窗体名称获取窗体并显示到指定panel? Label item = sender as Label; if (item == null) return; Assembly assembl
阅读全文