Click here to Skip to main content
15,615,787 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello .NET Pros,
I use VS 2008 and VS 2010 for developing purpose (I am still learning VB.NET). I am trying to develop an app with borderless MDI form and MDIChild forms, they too borderless, but i am facing a weired problem.
I have a TABControl in my MDI form, the purpose of TABControl was to imitate a Tabbed/docked UI. I override and painted the TABControl to give a nice look.
My problem is, whenever i load or show a borderless MDIChild form, the form's original titlebar and border flickers momentarily (title bar is visible for a fraction of second). Also, all of the controls in the form flicker. I have TABControls in my MDIChild forms as well. Moreover, MDIChild form's TABControl Headings flicker when i hover mouse pointer (this flickering disappears as i remove the MDI form's paint code or as i paint the MDIChild form's TABControl).
How can i stop these flickerings in my app?
Please help.

(Instead of overriding and painting the MDI form's TABControl i tried painting at FormLoad and at TABControl's DrawItem event but none of them seem to be helping. I even enabled the DoubleBuffer property of all the forms but no luck. I set most of the form properties at design time)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900