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
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();