try { ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.CreateNoWindow = false; startInfo.UseShellExecute = false; startInfo.FileName = "notepad.exe"; startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.Arguments = @"C:\Users\Sujeet\Documents\test.txt"; } catch { // }
startInfo.WindowStyle = ProcessWindowStyle.Hidden
[DllImport("user32.dll")] static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
Process p = new Process(); startInfo.FileName = "notepad.exe"; p.Start(); ShowWindow(p.MainWindowHandle, 0);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)