Skip to content

Instantly share code, notes, and snippets.

@gszauer
Created June 6, 2013 00:46
Show Gist options
  • Save gszauer/5718526 to your computer and use it in GitHub Desktop.
Save gszauer/5718526 to your computer and use it in GitHub Desktop.
using System.Windows.Forms;
using System.Drawing;
// http://zetcode.com/gui/csharpwinforms/introduction/
// http://www.codeproject.com/Articles/9407/Introduction-to-Mono-Your-first-Mono-app
// gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll MonoWindow.cs
// macpack -n:MonoWindow -a:MonoWindow.exe
public class Program : Form {
public Program() {
Text = "Simple Window";
Size = new Size(250, 200);
CenterToScreen();
}
static void Main(string[] args) {
Application.Run(new Program());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment