2010-07-12 7 views

답변

1

사용이

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); 
} 
관련 문제