I have three ProgressBars of the three styles. Blocks and Continuous are now rendering the same, whereas I remember Blocks used to render as Blocks.
http://www.kconnolly.net/pic开发者_如何转开发s/pb.jpg
is this unique to .NET 4, Aero Glass, or Windows 7? How can I tell my app to use the classic Blocks?
use this
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);
}
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论