1 Replies - 10807 Views - Last Post: 25 August 2012 - 09:17 AM

#1 priyamtheone  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 75
  • Joined: 02-September 08

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

Posted 04 August 2012 - 09:23 AM

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.
Is This A Good Question/Topic? 0
  • +

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

#2 priyamtheone  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 75
  • Joined: 02-September 08

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

Posted 25 August 2012 - 09:17 AM

It seems to be a bug. One way to remedy it is to handle SystemEvents.UserPreferenceChanged for e.Category=VisualStyle and change the Progressbar.Style to something and back again.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1