title: "does not contain a static 'main' method suitable for an entry point"
body: <p>I can't figure what's my wrong with my code below.</p>
  
  <p>When I try to compile I get the message:</p>
  
  <blockquote>
    <p>does not contain a static 'main' method suitable for an entry point.</p>
  </blockquote>
  
  <p>This is my code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  
  namespace RandomNumberGenerator
  {
  
  public partial class Form1 : Form
  {
      private const int rangeNumberMin = 1;
      private const int rangeNumberMax = 3;
      private int randomNumber;
  
  public Form1()
  {            
          randomNumber = GenerateNumber(rangeNumberMin, rangeNumberMax);
  }
  
  private int GenerateNumber(int min,int max)
      {
          Random random = new Random();
          return random.Next(min, max);
      }
  
  private void Display(object sender, EventArgs e)
      {                       
          switch (randomNumber)
          {
              case 1:
              MessageBox.Show("A");
              break;
              case 2:
              MessageBox.Show("B");
              break;
              case 3:
              MessageBox.Show("C");
              break;
          }
  
      }           
  }
  }
  </code></pre>
  
  <p>Can someone please tell me where I've gone wrong.</p>