0

Generally, its about Telerik RadDesktopAlert and its control named Popup.

So when i set size to new value:

_textBox.Clear();
        _textBox.Text = txtMessage;

        _textBox.Visible = 
        _btnCollapse.Enabled = 
        _btnNotify.Enabled =
        _panelWithButtons.Visible = true;

        AlertControl.FixedSize = new Size(ALERT_WIDTH, _height);
        AlertControl.Popup.Size = AlertControl.FixedSize;

I tried to run then

AlertControl.Popup.Invalidate();

But it still flickers. I tried to set DoubleBuffered via reflection, but this doesnt help.

In other words, how to remove flickering when i set size for the control ?

PS As you understand, i cannot inherit from that popup.

user3328720
  • 85
  • 1
  • 3
  • 11
  • http://stackoverflow.com/questions/2612487/how-to-fix-the-flickering-in-user-controls – B L Mar 14 '14 at 13:02
  • i dont have any form, i cant override 3rd party control and cant inherit – user3328720 Mar 14 '14 at 13:14
  • Are you just throwing out terms? I think when resizing controls in WinForms you are going to get some flicker as they redraw themselves; It's just the nature of the beast. You can attempt to optimize out the effect of the best you can, or you can use WPF. For what it's worth, I tried part of your code and there was no noticeable or prolonged flickering despite constant resizing of the DesktopAlert. – B L Mar 14 '14 at 13:56

0 Answers0