开发者

Asynch operation in WinForm app

开发者 https://www.devze.com 2022-12-28 03:57 出处:网络
I have a WinForms app. that when a button is clicked retrieves a bunch of data from database formats it and displays it to the end user.

I have a WinForms app. that when a button is clicked retrieves a bunch of data from database formats it and displays it to the end user. The operation can take 10 - 30 seconds. I would like to display a message to the user in a Dialog just saying "Be patient the operation is running" while the operation is running and then close when the data is ready to be presented to the end user. What is the best way to do this, start a new thread, use a Delegate or something else?开发者_运维知识库


The BackgroundWorker class is probably the simplest solution.


I'd look into the BackgroundWorker class

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号