class start
{
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
static void Main()
{
IntPtr h = Process.GetCurrentProcess().MainWindowHandle;
ShowWindow(h, 0);
// Do the rest
这仍然闪烁的屏幕,但工程足够好
用途是
using System.Runtime.InteropServices;
using System.Diagnostics;