Flickering While ResizingTreview, ListView, and Other Heavy Controls | | A post to our forums said, "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. 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)."
In doing some research in Google, always my first stop when I have a problem that is not easily solved, I sent him several links and he wrote me back saying that the following code worked for him.
protected override CreateParams CreateParams {
get {
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;
}
}
|
Just a short tip, but maybe it will help someone.
Have you tried our newest product, Visual Class Organizer? You'll be amazed how easy it is to keep the code in your code windows organized. TRY IT FREE FOR 30 DAYS BY CLICKING HERE.
| Ask a Question, or give your feedback on my articles or products by going to the KnowDotNet Forum or by clicking on My Blog. |  |
|