Windows Form Application in C# Closes Immediately
<p>I just started programming with C# and I'm trying to get my windows form application to function properly. However, whenever I run it, it just opens up and closes immediately. Whenever I type similar code into Java, there's no problem with the GUI. Did I miss something small here?   </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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        Form1_FormClosing();
    }



    private void Form1_FormClosing()
    {
        const string message =
            "There's an updated version of this program available. Would you like to download now?";
        const string caption = "Please update";
        var result = MessageBox.Show(message, caption,
                                     MessageBoxButtons.YesNo,
                                     MessageBoxIcon.Question);

        // If the no button was pressed ...
        if (result == DialogResult.No)
        {
            MessageBox.Show("Program will close now. If you want to use this program please update to the newest version.", "Please update");
            this.Close();
        }
        else if (result == DialogResult.Yes)
        {
            System.Diagnostics.Process.Start("http://www.google.com");
            this.Close();
        }
    }

}
}
</code></pre>
