![]() Protected override void OnPaint(PaintEventArgs e) SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true) Modify the ControlStyles flags -> OptimizedDoubleBuffer to avoid flickering text Public ProgressBarDisplayText DisplayStyle Property to set to decide whether to print a % or Text This is my custom control public class CustomProgressBar : ProgressBar Couldn't find any info about this, is there anyway around this? On windows 7 basic theme all is good but after i switch to windows classic im getting the above error. the error is on the line Rectangle.Inflate(x,y) On which im running WinForms appl with a custom progress bar. ![]() ![]() Im running windows 7 embedded and to save on performance i change the visual styles from windows 7 basic to windows classic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |