Progress Bar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • REEGAN DURAI
    New Member
    • Dec 2011
    • 1

    Progress Bar

    how to change progress bar color in c#
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    Looks like you can't, not directly anyway. Which is rather silly but that's Microsoft for you. The control uses your operating system's visual styles by default and there's no built in option to change it.

    That said, it's relatively easy to just make your own. Create a new class and inherit from ProgressBar, then override the OnPaint method and draw it however you like.

    You can use the methods available on ProgressBarRend erer class to assist you if you want a more "standard" style.

    Comment

    Working...