新建一个Win32 Application project
然后就有一个窗体了就可以从toolbox里拖控件(button)到窗体上了,然后就可以运行了

解决方案 »

  1.   

    这个问题回答起来就麻烦了(虽然大家都会)
    建议楼主去搜索一本 .net windows form 编程之类的书
    然后按照图来一步一步的做
      

  2.   

    namespace A
    {
    class A
    {
        static void Main(string[] args)
        {
         Application.Run(new newForm());
        }
    }

    public class newForm : Form
    {
    public newForm()
    {
    initForm();
    }
    void initForm()
    {
    Button btn = new Button();
    btn.Text = "新按钮";
    this.Controls.Add(btn);
    }
    }
    }