I've built a WinForms app in C#. The basic startup screen is similar to that of MS Word, albeit with a gradient blue background.
I just added a Splash screen. It runs on a separate thread and simply displays a borderless form at the center of the screen. It fades in, the main screen appears behind it, and it fades out, leaving the main screen. That's all fine.
But what's not is that the main screen now has an irritating flicker of sorts when it appears with the Splash screen in front of it. It never used to do this.
What's causing this and how can I prevent it from happening
Robert Werner
http://PocketPollster.com

Irritating Flicker Upon Startup
Xaid
Sathyashankar
As a workaround, consider *not* showing your main form until you're ready to get going and dismiss the splash screen...
JEP8979
// Activates double buffering - necessary to avoid flicker
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
But this didn't fix it either.
Any other ideas ... or is there a more sophisticated way to implement double-buffering
Robert
Dunce Hat
paso
I too am getting flickering. However, I'm using another thread to add items to a control on my form; but only that control is flickering.
I am about to try this: http://www.codeproject.com/cs/miscctrl/listviewxp.asp
Sanchit Bahal
you can set Opacity of the form as 0.99 in your design.cs
Someone said that when the Opacity equals 1, the form is in one mode. When the Opacity less than 1, the form is in another mode. Maybe there's a gap between these two modes, so the form will have some flickers at the beginning of the fading.
just have a try