Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Draw over UltraProgressBar. (SupportThemes = false)
posted

 I want to draw some marks over UltraProgressBar.   I inherited from UltraProgressBar and overrided  OnPaint  method like this:

 protected override void OnPaint(PaintEventArgs pe)
  {
            base.OnPaint(pe);
            using (Graphics gr = this.CreateGraphics())
             {
                  gr.FillRectangle(Brushes.Red, new Rectangle(10, 10, 10, 10));
             }
   }

 It's Ok when SupportThemes is true, but...!    But when i want to switch SupportThemes to false it's broke at one stroke.  No one of my marks is drawn. 

What you will advise?