2010-07-12 10 views

Répondre

1

utilisent ce

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); 
}