且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在列表框中插入批量记录时禁用指针

更新时间:2023-11-19 07:56:40

如果您要使用某些for循环或while循环将其插入列表框的Item源,那么在循环时可能要使用

If you are using some for loop or while loop to insert to the Item source of the listbox than you may have to use while looping

Application.DoEvent()



这将使您的应用程序响应,即使后端代码上有一个循环,您也可以在窗体上看到光标.
这将适用于Windows应用程序表单.



This will make your application respond even there is a loop going on the backend code, and you will able to see the cursor on the form.
This will work for windows application forms.