TabControl flicker issue

  • Thread starter Thread starter aagarwal8
  • Start date Start date
A

aagarwal8

Hi,

I have a very simple form containing a TabControl with 2 TabPages. The
Dock property for TabControl is set to Fill. TabPage1 contains a
TreeView with some nodes. Tabpage2 is currently blank.

The problem is when i resize the Form, lot of flickering happens. (I
have set the windows appearance to Show the contents of window while
resizing).

Any help in this regard is appreciated.

Thanks,
Ankit!!
 
By overriding the CreateParams for the Form, i was able to get rid of
the Flickering completely

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

Regards,
Ankit!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top