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)