>>如果用户多次快速选择时会出错Before you get data from the database, set the control's enabled to false, after you done, set enabled to true again.>>如何让程序暂停1秒钟
Thread.Sleep(1000);
Thread.Sleep(1000);
调试欢乐多
装载完数据后再设置Cursor=Cursors.Default;
在Form中设置一个变量,
Private bool _IsLoading = false;当点击树节点时
{
if (!_IsLoading)
{
_IsLoading = true;
...//这是装载过程
_IsLoading = false
}