Hi folks,

I have following code:-
 using System;
 using Gtk;
 
 public class GtkHelloWorld {
  
   public static void Main() {
     Application.Init();
 
     //Create the Window
     Window myWin = new Window("GREETING");
     myWin.Resize(200,200);
     
     //Create a label and put some text in it.     
     Label myLabel = new Label("<b><i>Hello World!!!!</i></b>");
     myLabel.UseMarkup = true;
          
     //Add the label to the form     
     myWin.Add(myLabel);
     
     //Show Everything     
     myWin.ShowAll();
     
     Application.Run();   
   }
 }
- end -


The .exe file compiled with "mcs" works on mono nicely in Linux environment 
with a window popup on screen.

Now  I want to the make the window popup on the centre of the screen.  Please 
advise how to make it.   TIA


B.R.
Stephen L



_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to