摘要:1、定义无操作时间 static int iOperCount = 0;//无操作秒数 static int logoutSecond = 10;//退出倒计时 2、动作后无操作描述归零 //用于记录用户无操作时间 internal class MyMessager : IMessageFilter
阅读全文
摘要:参考链接:https://blog.csdn.net/qiume/article/details/6646506 1、添加类 //日期列 public class CalendarColumn : DataGridViewColumn { public CalendarColumn() : base
阅读全文
摘要:学习链接: a、https://www.cnblogs.com/txw1958/archive/2012/09/05/csharp-BackgroundWorker.html b、https://www.cnblogs.com/zhaoshujie/p/9634136.html 1、定义异步任务 p
阅读全文
摘要:学习链接:https://blog.csdn.net/winterye12/article/details/77370453 1、新建Msg类 class Msg { [DllImport("user32.dll")] //发送消息 public static extern void PostMes
阅读全文
摘要:参考链接:https://blog.csdn.net/huangshunle/article/details/7281683 1、创建用户类 public class User { private int userId; private string faceId; private string u
阅读全文
摘要:参考链接:https://www.cnblogs.com/techdreaming/p/9810172.html 在主Form中添加 var asForm = System.Windows.Automation.AutomationElement.FromHandle(this.Handle);
阅读全文
摘要:有时需要创建一个主窗体,然后切换不同的页面,可以创建一个公共的Panel,然后不同的页面都显示在这个Panel中。 1、Form主窗体中添加Panel控件,修改name为mainPanel; 2、添加一个新的用户控件Test.cs. 3、显示代码。每次都会重新创建这个窗体显示。 mainPanel.
阅读全文