Responsive GUI using Multi-threading in C# Winforms

前端 未结 2 568
被撕碎了的回忆
被撕碎了的回忆 2021-01-14 15:49

I have a child form in my application. This form has got about more than 50 comboboxes and everyone is getting data from database. All combobexs are loaded in the load event

2条回答
  •  灰色年华
    2021-01-14 16:06

    Take a look at the BackgroundWorker class. This can do exactly what you want. You can also include something like a progress bar to show users the data is still being loaded before they go ahead and do stuff in your child form.

提交回复
热议问题