Запуск exe в WinForm Project Tab

Я заинтересован в помощи в выполнении следующих действий с приложением winform, которое я пишу, чтобы открыть на вкладке .exe в c # в Visual Studios 2010 IDE.I '

В настоящее время я могу открыть программу нажатием кнопки на нужной вкладке, используя следующий код:

        string str = @"-INSERT FILEPATH HERE-";//took file path out as i have a few exes i'm wanting to add. 
        Process process = new Process();
        process.StartInfo.FileName = str;
        process.Start();

теперь, как я могу сделать так, чтобы этот исполняемый файл открывался как вкладка или вкладка в моей winform? Я'Я открыт для предложений по тому или иному делу.

РЕШИТЬ:

using System.Runtime.InteropServices;
    using System.Threading;
    [DllImport("user32.dll", SetLastError = true)]
    private static extern bool MoveWindow(IntPtr hwnd, int x, int y, int cx, int cy, bool repaint);
    [DllImport("user32.dll", SetLastError = true)]
    static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);

   public GUI()
    {
        // Initialize form fieds
        InitializeComponent();
        openProgram()
    }
    private void openProgram()
    {

        process.StartInfo.FileName = "-filepathhere-";

        process.Start();

        IntPtr ptr = IntPtr.Zero;
        while ((ptr = process.MainWindowHandle) == IntPtr.Zero) ;
        SetParent(process.MainWindowHandle, trackerPanel.Handle);
        MoveWindow(process.MainWindowHandle, 0, 0, this.Width - 90, this.Height, true);

    }

Ответы на вопрос(1)

Ваш ответ на вопрос