Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 Tags
Subject: Can't run a C# project in Debug
Thread ID: 268856 Message ID: 268856 # Views: 29 # Ratings: 0
Version: Not Applicable Category: .NET
Date: Thursday, July 15, 2010 3:56:17 AM         
   


Colleagues,

Felleing hat I'm loosing it, I decided to start doing some small projects in C# (VS 2005).

I created just the simplest project: one form with the exit button on it, with the following code:

private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }

Here's what I have in the Program.CS file:
using System;
using System.Collections;
using System.Windows.Forms;

namespace TestExit
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

That's it. Nothing else. And when I hit F5 - here's wht I see:


What am I missing?

Regards,

Ilya

ENTIRE THREAD

Can't run a C# project in Debug Posted by Ilya Rabyy @ 7/15/2010 3:56:17 AM
RE: Can't run a C# project in Debug Posted by Christian Tabligan @ 7/15/2010 4:37:14 AM