[Mono-list] bold, italic and position of the window
Stephen Liu
satimis at yahoo.com
Fri Apr 23 10:42:36 EDT 2010
Hi folks,
# cat helloworld.cs
using System;
using Gtk;
public class GtkHelloWorld {
public static void Main() {
Application.Init();
//Create the Window
Window myWin = new Window("My first GTK# Application! ");
myWin.Resize(200,200);
//Create a label and put some text in it.
Label myLabel = new Label();
myLabel.Text = "Hello World!!!!";
//Add the label to the form
myWin.Add(myLabel);
//Show Everything
myWin.ShowAll();
Application.Run();
}
}
- end -
How to bold and italic the text;
Hello World!!!!
How to make the window popup in the centre of the screen? TIA
B.R.
Stephen L
More information about the Mono-list
mailing list