RT!请教!

解决方案 »

  1.   

    哎,我知道VC的如何实现,你看能不能直接跳到入口点而不经过main,VC中就是这样做的。
      

  2.   

    [DllImport("user32.dll", SetLastError = true)]
    static extern int FindWindow(string lpClassName, string lpWindowName);[DllImport("user32.dll")]
    static extern bool ShowWindow(int hWnd, int nCmdShow);public static void Main(string[] args)
    {
    string formName = @"""G:\VS.Net\Console\bin\Release\ConsoleApp.exe""";
    int h = FindWindow("ConsoleWindowClass",formName);
    ShowWindow(h,0);
    }
      

  3.   

    process.StartInfo.FileName = @"ConsoleApplication1.exe";
    process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    process.Start();
      

  4.   

    Process p = new Process();
    p.StartInfo.FileName = "ConsoleApplication1.exe";
    p.StartInfo.CreateNoWindow = true;