我想请问各位高手
 delphi窗体调用可以写入口函数,C#可以这样写吗?
如果不是该怎摩写

解决方案 »

  1.   

    在在启动win form 的工程也需要入口函数
    /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main() 
    {
    Application.Run(new Form1());
    }
    启动窗口是Form1
      

  2.   

    Application.Run( new Form1())就是入口函数
      

  3.   

    static void Main()
    {
    Form 启动窗口=new Form();
    Application.Run(启动窗口);
    }
      

  4.   

    static void Main() 
    {
    Application.Run(new Form1());
    }