WinForms app seems “Not Responding” while fetching data from database?

前端 未结 3 1108
不思量自难忘°
不思量自难忘° 2021-01-22 11:17

I work on WinForms app (VB.NET) which handles CRUD operations. When it loads the data, it seems state like \"Not Responding\" and when loading finished, every thing will be norm

3条回答
  •  失恋的感觉
    2021-01-22 12:17

    You could use a BackgroundWorker to offload lengthy operations on a background thread to avoid blocking the main UI thread.

提交回复
热议问题