Update WinForm Controls from another thread _and_ class

后端 未结 2 1971
抹茶落季
抹茶落季 2020-12-06 08:31

I am making a WinForms program, which requires separate threads For readability and maintainability, i have separated all non-GUI code out into different classes. This class

2条回答
  •  攒了一身酷
    2020-12-06 09:31

    you can use backgroundworker to make your other thread, it allow you to deal easily with your GUI

    http://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx

提交回复
热议问题