使用ubuntu linux和mono在c#中创建表单

使用ubuntu linux和mono在c#中创建表单,c#,ubuntu,C#,Ubuntu,我在ubuntu v18和mono版本6.12上安装了Im,所以我安装了mono,用它来编译我的程序和运行程序 using System; using System.Windows.Forms; using System.Globalization; using System.Threading; //mcs Program.cs -pkg:dotnet to compile //mono the exe file to run mono Program.exe class Program

我在ubuntu v18和mono版本6.12上安装了Im,所以我安装了mono,用它来编译我的程序和运行程序

using System;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;

//mcs Program.cs -pkg:dotnet to compile
//mono the exe file to run mono Program.exe

class Program : Form
{ 
    static void Main(string[] args){
        CultureInfo ci = new CultureInfo("en-US");
        Thread.CurrentThread.CurrentUICulture = ci;
        Thread.CurrentThread.CurrentCulture = ci;

        Application.Run(new Program());
    }

    public Program(){
        Text = "Hello world";
    }
}
这是我的代码,到目前为止,它创建了一个windows窗体,其中只有
Hello World
,但是我如何向该代码添加例如按钮或输入字段,因为在我的文件夹中,我只有2个文件和
Program.cs
Program.exe
文件,或者可以链接到另一个窗体?或者可以用xml构建它。我是csharp和visual的新手。

您是否侵入vim(一些文本编辑器)并使用cli命令?您应该考虑使用一些具有设计器支持的IDE。看起来已经过时了,但可能是合法的。您可以用代码创建整个应用程序(无需使用设计器,但我不建议这样做),只需在线查阅Windows窗体教程