Opened 15 months ago

Last modified 13 months ago

#2607 new defect

TabControl slows other controls and causes flickering

Reported by: pfleck Owned by:
Priority: medium Milestone: HeuristicLab 3.3.x Backlog
Component: MainForm.WindowsForms Version: 3.3.13
Keywords: Cc:

Description

Controls on a TabControl resize slowly and flicker, as also reported on varios stack overflow articles (see below). In cases where calculation intensive resizing is involved (e.g. charts), the GUI freezes shortly due to resizing and flickers.

Most articles suggest setting the WS_EX_COMPOSITED flag on the TabControl:

protected override CreateParams CreateParams {
  get {
    CreateParams cp = base.CreateParams;
    cp.ExStyle |= 0x02000000;  // Turn on WS_EX_COMPOSITED
    return cp;
  }
}

Some authors warn of possible side effects of this flag, so this should be properly tested.

http://stackoverflow.com/questions/4690426/why-do-my-winforms-controls-flicker-and-resize-slowly http://stackoverflow.com/questions/3111841/tabcontrol-blinks-if-image-is-background http://stackoverflow.com/questions/2612487/how-to-fix-the-flickering-in-user-controls?lq=1 http://stackoverflow.com/questions/16925369/tabcontrol-flickering

Attachments (1)

Enable WS_EX_COMPOSITED on DragOverTabControl.patch (490 bytes) - added by pfleck 15 months ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 13 months ago by pfleck

  • Milestone changed from HeuristicLab 3.3.14 to HeuristicLab 3.3.x Backlog
Note: See TracTickets for help on using tickets.