We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Marquee Style Progress Bar

Hi, I have read the MSDN Library for information on making a marquee style progress bar - one that keeps on repeating for when you're unsure of the current progress. The two methods I can see is to CreateWindowEx with the PBS_MARQUEE style, or to SendMessage with PBM_MARQUEE. How can I do it with the Windows Forms controls? It already creates the control with the default style; it's a sealed class I can't derive from (I was thinking of overriding the constructor). SendMessage doesn't seem to work; besides, the constant definition is inside commctrl.h which doesn't come with .NET. Also, is it possible to do a smooth progress bar? Thanks.

2 Replies

AS Aslak May 22, 2022 08:06 AM

Anyone hitting this post from Googling how to create a marquee progress bar with ProgressBarAdv:

https://www.syncfusion.com/forums/72113/circular-progress-bar



SM Subashini Mahendran Syncfusion Team May 23, 2022 06:35 AM

Hi Aslak,


We have checked the reported query “How to create a Marquee style progress bar”. The Marquee style progress bar can be achieved by setting the ProgressStyle as WaitingGradient in ProgressBarAdv control. Please find the code snippet and sample below.


Code snippet:

this.progressBarAdv1.ProgressStyle = Syncfusion.Windows.Forms.Tools.ProgressBarStyles.WaitingGradient;

this.progressBarAdv1.WaitingGradientInterval = 80;

this.progressBarAdv1.WaitingGradientWidth = 30;

this.progressBarAdv1.TextStyle = Syncfusion.Windows.Forms.Tools.ProgressBarTextStyles.Custom;

this.progressBarAdv1.CustomText = "";


Sample: ProgressBarAdv-sample


Also, please find the different style progress bar control from KB link:

https://www.syncfusion.com/kb/1476/what-are-the-progress-styles-available-in-winforms-progressbaradv


If we misunderstood your query, please provide more details about your requirement with a screenshot or video? It will be helpful for us to provide a prompt solution at earliest.


Regards,

Subashini M.


Loader.
Live Chat Icon For mobile
Up arrow icon