【问题标题】:Get rid of Console command line摆脱控制台命令行
【发布时间】:2016-04-09 09:53:01
【问题描述】:

我用我的类创建了一个 c# 控制台应用程序。

现在我添加了一个表格来绘制我的图形。但是当我启动应用程序时,它会同时启动控制台和表单。

如何摆脱控制台命令行并只显示表单?

主类:

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

【问题讨论】:

  • 我们不知道,因为我们没有看到您的任何代码..
  • @TaW 不确定它是否特定于代码...

标签: c# winforms user-interface


【解决方案1】:

转到Project -> (ProjectName) Properties -> Application 选项卡并将Output typeConsole Application 更改为Windows Application

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-07-30
    • 2019-03-09
    • 1970-01-01
    • 2017-08-11
    • 1970-01-01
    • 2010-11-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多