一个很郁闷的错误

Program.cs

只是在Form1中添加了menuStrip1,statusStrip1,toolStrip1三个控件.然后运行,出现如下错误:

 

不知道如何解决啊.望高手讲下

 改为如下情况,实在想不懂,已经包含了命名空间,为什么还要全部写出来?

 

 

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Application
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            System.Windows.Forms.Application.EnableVisualStyles();
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
            System.Windows.Forms.Application.Run(new Form1());
        }
    }
}

posted @ 2008-09-25 10:28  Larify  阅读(111)  评论(0编辑  收藏  举报