Other Software > Developer's Corner
Remove Flicker from Splash Screen
sukhjinder:
My Final solution
public SplashScreen()
{
this.TopMost = true;
this.ShowInTaskbar = false;
this.FormBorderStyle = FormBorderStyle.None;
this.StartPosition = FormStartPosition.CenterScreen;
Image img = Bitmap.FromFile(LetsYoConfig.SplashFileName);
this.Size = img.Size;
LockWindowUpdate(this.Handle);
try
{
this.BackColor = this.TransparencyKey = Color.White;
Bitmap b = new Bitmap(img);
this.BackgroundImage = splashImage = (Image) b;
}
finally
{
LockWindowUpdate(IntPtr.Zero);
}
}
Everything works as expected.
Thank you.
I have some more issues relating to drawing custom controls for my Opensource Mediaplayer LetsYo. If you are intersted and can donate some time of yours please visit my project home page http://sukhjinder.cn/letsyo. Screenshots at http://sukhjinder.cn/letsyo/screenshots.html
Navigation
[0] Message Index
[*] Previous page
Go to full version