Update Label while processing in Windows Forms

前端 未结 5 1879
情歌与酒
情歌与酒 2020-12-13 13:05

What is the best way to update a label on a Windows Forms application while processing?

I have a loop that does some processing to files on the user\'s system when t

5条回答
  •  无人及你
    2020-12-13 13:49

    If your processing is lengthy do it in a backgroundworker thread.

    http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx

提交回复
热议问题