Windows Forms marquee style progress bar that doesn't, well, marquee..

If you've got a progress bar where the Style is set to "ProgressBarStyle.Marquee" and the progress bar sits there blank, not scrolling and looking rather sorry for itself, one reason for this is that your "Main" method is missing:

Application.EnableVisualStyles(); // Application is System.Windows.Forms.Application

You might be in this situation because you've started off with a console application to which you've then elected to add some WinForms UI to.

About Rob

I've been interested in computing since the day my Dad purchased his first business PC (an Amstrad PC 1640 for anyone interested) which introduced me to MS-DOS batch programming and BASIC.

My skillset has matured somewhat since then, which you'll probably see from the posts here. You can read a bit more about me on the about page of the site, or check out some of the other posts on my areas of interest.

No Comments