私は現在これを次のように行っています:
// _Container is the panel that the program is to be displayed in.
System.Diagnostics.Process procTest = new System.Diagnostics.Process();
procTest.StartInfo.FileName = "TEST.EXE";
procTest.StartInfo.CreateNoWindow = false;
procTest.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
procTest.Start();
procTest.WaitForInputIdle();
SetParent(procTest.MainWindowHandle, _Container.Handle);
MoveWindow(procTest.MainWindowHandle,
0, 0, _Container.Width, _Container.Height, true);
このコードで私が抱えている問題は、MainWindowHandleを変更すると(つまり、ボタンにテキストがない)、アプリケーションUIの一部が正しく機能しなくなることです。
ドッキングされたアプリケーションで問題を引き起こさずにこれを行う方法はありますか?(.netまたはuser32のいずれかを介して)?