Windows Form application freeze randomly when run overnight

前端 未结 5 697
离开以前
离开以前 2021-01-04 18:09

I have a window form application, and it has multiple threads running that would invoke on the Main UI thread to update the UI. Occasionally on development machine, the app

5条回答
  •  耶瑟儿~
    2021-01-04 18:45

    Disabling the visual styles will also fix the issue (if you do not need them)

    //Comment this line if you do not want visual styles and do not want to mess with SystemEvents.
    //Application.EnableVisualStyles();
    

提交回复
热议问题