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.


No Comments