How to create a "Continuous Progress Bar" in C#
I am using this code
"progressBar1.S tyle = ProgressBarStyl e.Continuous"
but it is not working
I am using this code
"progressBar1.S tyle = ProgressBarStyl e.Continuous"
but it is not working
using System; using System.Windows.Forms; public class ContinuousProgressBar : ProgressBar { public ContinuousProgressBar() { this.Style = ProgressBarStyle.Continuous; } protected override void CreateHandle() { base.CreateHandle(); try { SetWindowTheme(this.Handle, "", ""); } catch { } } [System.Runtime.InteropServices.DllImport("uxtheme.dll")] private static extern int SetWindowTheme(IntPtr hwnd, string appname, string idlist); }
Comment