我正試圖用下面的代碼在窗體中打開一個exe文件。C#打開一個表格中的程序
這是打開我的程序,但在窗體外。我想要在我的窗體中有這個程序。 請幫助 問候
Process p = new Process();
p.StartInfo.FileName = @"C:\Program Files\Cadence Design Systems\Allegro Free Physical Viewers 16.6\tools\pcb\bin\allegro_free_viewer";
p.StartInfo.Arguments = "ProcessStart.cs";
p.Start();
p.WaitForExit();
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;
「我的表格裏面有這個程序」是什麼意思? – VladL
爲什麼需要在表單中打開「內部」? – Arran
嗨,我在C#中創建窗體,然後我想執行阿德羅戈程序,但程序要在我的窗體內打開。 – Sorin