Groups | Blog | Home
all groups > dotnet windows forms controls > june 2008 >

dotnet windows forms controls : ToolStripProgressBar: Style is always Continuous


Axel Dahmen
6/20/2008 11:12:46 PM
Hi,

I don't seem to be able to change the ProgressBar Style property in =
Visual Studio 2008. No matter what value I set it to, the ProgressBar is =
always displayed as "Continuous".

Does anyone have the same experience? Or am I doing something wrong =
here?

TIA,
Chris Jobson
6/21/2008 6:40:49 PM
[quoted text, click to view]

Actually I find that Continuous is the one value that _doesn't_ work; both
Blocks and Marquee do. However, the documentaion for the ProgressbarStyle
enumeration syas "The Continuous style is valid only when visual styles are
not enabled.", and if you comment out the line
"Application.EnableVisualStyles();" from Program.cs then Continuous also
works (but Marquee doesn't).

Chris Jobson

AddThis Social Bookmark Button