By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,899 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,899 IT Pros & Developers. It's quick & easy.

Problem in ToolStripProgressBar painting (VS.Net 2010, WinForms).

P: 79
Ensure ApplyVisualStyles is enabled in your system. Place a ToolStripProgressBar on a toolstrip, run your application and minimize the form. Now change the theme of your computer to Windows Classic and restore the form. See the interior of the ToolStripProgrssBar becomes black. It doesn't even change if you refresh the form. How does the user know the status of the progress if it remains black always? Any approach to fugure it out? Regards.
Aug 4 '12 #1
Share this Question
Share on Google+
1 Reply


P: 79
It seems to be a bug. To remedy it is to handle SystemEvents.UserPreferenceChanged for e.Category=VisualStyle and change the Progressbar.Style to something and back again.
Aug 25 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.