1
我是一名新的C#程序员。 我想在我的C#程序中托管eclipse程序,所以用户将打开我的程序,并在里面将eclipse程序全部放在一个窗口中。我尝试下面的代码,它是nodepad工作方案,但不偏食在C#程序中托管Eclipse程序
Process proc;
// Start the process
proc = Process.Start("C:\\eclipse/eclipse.exe");
proc.WaitForInputIdle();
// Set the panel control as the application's parent
SetParent(proc.MainWindowHandle, this.panel1.Handle);
// Maximize application
SendMessage(proc.MainWindowHandle, 274, 61488, 0);
任何帮助,将不胜感激
System.Diagnostics.Process.Start(”CMD.exe“,”/ C“+ fileZillaPath +”\\\“FileZilla Server.exe \”/ reload-config“);这个代码在我以前工作过,注意有两个参数,第一个是CMD.exe,第二个是路径。我认为/ C也很重要 – Joel 2012-03-05 19:52:37
我想补充一点问题。该代码打开eclipse程序,但不像在记事本中一样在相同的窗口中。它在其他窗口中打开日食。对不起,不要这样说。 – 2012-03-06 06:57:24