title: GUI in C# without Visual Studio
body: <p>Okay, I'm a newbie in C# but I need to create a simple GUI, but I don't have Visual Studio (I use Geany and Mono).</p>
  
  <p>The problem is, when I tried the following code that I found by Google:</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  using System.ComponentModel;
  using System.Drawing;
  
  public class FirstForm : Form
  {
    private Container components;
    private Label   howdyLabel;
  
    public FirstForm()
    {
      InitializeComponent();
    }
  
    private void InitializeComponent()
    {
      components = new Container ();
      howdyLabel = new Label ();
  
      howdyLabel.Location = new Point (12, 116);
      howdyLabel.Text   = "Howdy, Partner!";
      howdyLabel.Size   = new Size (267, 40);
      howdyLabel.AutoSize = true;
      howdyLabel.Font   = new Font (
        "Microsoft Sans Serif", 
        26, System.
        Drawing.FontStyle.Bold);
      howdyLabel.TabIndex = 0;
      howdyLabel.Anchor  = AnchorStyles.None;
      howdyLabel.TextAlign = ContentAlignment.MiddleCenter;
  
      Text = "First Form";
      Controls.Add (howdyLabel);
    }
  
    public static void Main()
    {
      Application.Run(new FirstForm());
    }
  }
  </code></pre>
  
  <p>I just get these errors when trying to compile:</p>
  
  <pre><code>C:\C#\test2.cs(2,14): error CS0234: The type or namespace name 'Windows' does not exist in the namespace 'System'. Are you missing an assembly reference?
  C:\C#\test2.cs(4,14): error CS0234: The type or namespace name 'Drawing' does not exist in the namespace 'System'. Are you missing an assembly reference?
  C:\C#\test2.cs(9,11): error CS0234: The type or namespace name 'Label' could not be found. Are you missing a using directive or an assembly reference?
  Compilation failed: 3 error(s), 0 warnings
  </code></pre>
  
  <p>I downloaded both DLL's, but I don't know what to do next.
  Link to the code: <a href="http://www.informit.com/articles/article.aspx?p=27316" rel="nofollow">http://www.informit.com/articles/article.aspx?p=27316</a></p>