• 一个很郁闷的错误


    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());
            }
        }
    }

  • 相关阅读:
    前端面试攻略1------算法部分
    MongoDB学习
    MongoDB作为Windows服务来安装 错误1053:服务没有及时响应启动或控制请求
    Vue 入门之 Vuex 实战
    Vue 路由详解
    vue入门全局配置
    VSCode配合ESLint自动修复格式化
    vue入门之单文件组件
    Echarts图表-学习
    GoJS学习
  • 原文地址:https://www.cnblogs.com/luoweihua7/p/1298549.html
Copyright © 2020-2023  润新知