SplashScreen

CodeKeep C# Feed Giugno 4th, 2008

Description: SplashScreen

Link: http://www.codekeep.net/snippets/e3475a77-6abe-436f-bd88-c5990ca12b41.aspx

	void Test()
	{
            StartupScreen startup = new StartupScreen();

            Thread th = new Thread(new ThreadStart(DoSplash));
            th.Start();
            Initialize();
            th.Abort();
	}

        static void DoSplash()
        {
            StartupScreen sp = new StartupScreen();
            sp.ShowDialog();
        }

class StartupScreen
{
	public StartupScreen()
	{
	Bitmap b = new Bitmap(this.BackgroundImage);
	b.MakeTransparent(b.GetPixel(1,1));
	this.BackgroundImage = b;
	}
}

  • .NET
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Comments are closed.

Trackback URI |