Mono: The first GTK # program
At present, MONO has not implemented classes under the System.Window namespace, but there are currently multiple projects to implement interface programming, such as GTK #, Qt #, WX.NET, etc. The future launched Mono will use GTK # as its System.Window implementation, we look forward to the new features such as Mono's next release, system.window, C # 2.0 and other new features more exciting.
The collapse is correct, starting our first GTK # program.
The first step is to start Monodevelop, create a new solution, select GTK # Project:
Figure 2.2.0
Monodevelop will generate two CS files: main.cs, myWindow.cs, myWindow inherits the gtk.window class,
We add a button button to the window, the code is as follows:
Figure 2.2.1
Press F8 to compile and run our program in the terminal.
Smallnest@kuaff.com