|
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();
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Currently I'm an official developer on the Mono project.
I spend most my days hacking the Mono core as well as helping out in the open source Mono community. I'm also a contributor to many different projects focusing mostly on bring exsiting systems to new operating systems.
I currently contract my services out to anyone not doing anything open source. Contact me if you are looking for a contractor or you have interest in Mono support pacakge.