在C#程序中托管Eclipse程序
我是一名新的C#程序员。 我想在我的C#程序中托管eclipse程序,所以用户将打开我的程序,其中将是eclipse程序,所有这些都在一个窗口中。我尝试了以下代码,它适用于nodepad程序,但不适用于eclipse在C#程序中托管Eclipse程序,c#,eclipse,host,C#,Eclipse,Host,我是一名新的C#程序员。 我想在我的C#程序中托管eclipse程序,所以用户将打开我的程序,其中将是eclipse程序,所有这些都在一个窗口中。我尝试了以下代码,它适用于nodepad程序,但不适用于eclipse Process proc; // Start the process proc = Process.Start("C:\\eclipse/eclipse.exe"); proc.WaitForInputIdle();
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);
如果您有任何帮助,我们将不胜感激。尝试这一过程。Start(@“eclipsePath/eclipse.exe”,“您的文件路径”)System.Diagnostics.Process.Start(“CMD.exe”,“/C”+fileZillaPath+“\\\\\”FileZilla Server.exe \“/reload config”);这段代码以前对我有用,注意有两个参数,第一个是CMD.exe,第二个是路径。我认为信用证也很重要。我想补充一下这个问题。代码是在eclipse程序中打开的,但与在记事本中打开的窗口不同。它在另一个窗口中打开eclipse。对不起,我没那么说。