[Gtk-sharp-list] How to implement a splash screen?

shibham shraban143 at gmail.com
Tue Mar 4 05:54:54 UTC 2014


Hi Dear,

Actually i was also on search for creating a Splash Screen from a long time.
Even i tried your code but it seems to be ineffective...
The Splash screen is disappering after the specified time without displaying
itself and opening the Mainwindow.

I searched and tried a lot......
Finally i got succeed to implement whatever code i am sharing..........Plz
don't forget to Reply...

Plz find the below working code...........ITS WORKING FINE IN XAMARIN
STUDIO,GTK# MONODEVELOP......
     
                            PLZ DON'T FORGET TO REPLY.......

===========================================================

             public static void Main (string[] args)
		{
			Application.Init ();
			
	               Splashscreen obj_Splash = new Splashscreen ();	
		       obj_Splash.Show ();

		      GLib.Timeout.Add (5000, delegate {

		      MainWindow win = new MainWindow ();
		      win.Show ();

		      obj_Splash.Hide ();

		      return false;
		
			});

                    Application.Run ();

		}

=============================================================



--
View this message in context: http://mono.1490590.n4.nabble.com/How-to-implement-a-splash-screen-tp1546350p4662104.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list