C# FormTool.SetCursor设置光标为等待状态,提高用户体验
C# FormTool.SetCursor设置光标为等待状态,提高用户体验
C# 全选
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CSFrameworkV5.Library.CommonClass
{
public class FormTool
{
public static void SetCursor(Control btn, bool enable)
{
if (btn != null) btn.Enabled = enable;
if (enable)
Cursor.Current = Cursors.Default;
else
Cursor.Current = Cursors.WaitCursor;
Application.DoEvents();
}
}
}
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网