一,鼠标状态-VS2015 忙: Cursor = Cursors.WaitCursor; 正常: Cursor=Cursors.Default; 帮助: Cursor=Cursors.Hand; 二,鼠标状态-DIV CSS
WPF与WinForm获取单元格方式不同,需要as强制转换 单元格类型 1、WinForm string str = (string)dataGrid.Rows[0].Cells[0].Value
一,在线安装版: http://www.sufeinet.com/thread-2187-1-1.html https://blog.csdn.net/weixin_39704162/artic
有框 略(有两种,一种写法与无框原理相同;一种用MDIParent作为父窗体) 无框 form1.TopLevel = false; // 漏出菜单栏 form1.FormBorderStyle = FormBorderStyle.None; // 无框 form1.Parent = this.pa
// 以下示例为:模拟点击按钮的示例(执行按钮点击事件) button1.PerformClick(); // 模拟点击button1
事实证明,有些东西不用就会弄混。
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing.Drawing2D; using System.Drawing; using System.Linq;
// 自定义控件(ToolStripButton) public partial class RoundButton : ToolStripButton { protected override void OnPaint(Paint
/// <summary> /// 监听手动关闭事件 /// </summary> /// <param name="msg"></param> protected override void WndProc(ref Message msg) { const int WM_SYSCOMMAND =
// 找活动状态中的窗口 Form form = Form.ActiveForm.FindForm(); Console.WriteLine("ActiveForm.FindForm:" + form.GetType()); // 找应用中的窗口 FormCollection formCollect
TextBox滑动条保持在最后一行 private void TextBox_TextChanged(object sender, System.EventArgs e) { this.TextBox.SelectionStart = this.Text
1、窗体界面拖拽一个notifyIcon控件: 2、窗体启动时加载图标: /// <summary> /// 初次启动 /// </summary> private void Form1_L
static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetC
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing.Drawing2D; using System.Dr
1 /// <summary> 2 /// 不重复运行程序 3 /// </summary> 4 /// <returns></returns> 5 private static Process RunningInstance() 6 { 7 Process current = Process.Ge
/// <summary> /// 只能输入数字 /// </summary> private void txt1_KeyPress(object sender, KeyPressEventArgs e) { //如果输入的不是退格和数字,则屏蔽输入 if (!(e.KeyChar == 8 ||
if (dataGridView1.Rows[0].Cells[0].Value == DBNull.Value) { //... }
最新版下载地址: https://www.慧都evget.com/product/740/download 图摘自:https://blog.csdn.net/luzhangtong/article/details/81177616 DexExpress12.2.5 链接:https://pan.b
/// <summary> /// 重写Panel-还未实现圆角功能 /// </summary> public class RoundPanel : Panel { private int mMatrixRound = 8; private Color mBack; public Color Ba
#region DropDownList样式重绘 /// <summary> /// 主要为DropDownList样式重绘(特定性较强) /// </summary> public partial class Co
#region Form圆角 public void SetWindowRegion() { System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.Drawing.Drawing2D.GraphicsPath();
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号