Opened 3 years ago

Last modified 2 years 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:


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.

Attachments (1)

Enable WS_EX_COMPOSITED on DragOverTabControl.patch (490 bytes) - added by pfleck 3 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 2 years ago by pfleck

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