C# winform
Luca一y
这是个菜鸟
展开
-
.NET winform三种计时器的使用
System.Windows.Forms.Timer会影响界面的响应,不建议使用,适合单线程,精确度不高private System.Windows.Forms.Timer timerGetTime;public void TestTimer(){ //创建定时器 timerGetTime = new System.Windows.Forms.Timer(); //设置定时器属性 timerGetTime.Tick+=new EventHandler(HandleTime); ..原创 2021-07-09 16:39:56 · 1556 阅读 · 0 评论 -
winform DataGridView 文本居中
//记录DataGridView设置文本居中显示DataGridView.RowsDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;原创 2020-11-10 15:05:28 · 1459 阅读 · 0 评论