本文介绍了为什么SetParent只在设置断点时运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

proce = Process.Start("mspaint.exe");
proce.WaitForInputIdle();
SetParent(proce.MainWindowHandle, splitContainer1.Panel2.Handle);
SendMessage(proce.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0);



这是我的代码用于集成Paint来形成,但它只在我设置断点时运行


this is my code for integrate Paint to form,but it only runs when I set breakpoint at

SetParent(proce.MainWindowHandle, splitContainer1.Panel2.Handle);



我哪里错了?


Where I was wrong?

推荐答案


这篇关于为什么SetParent只在设置断点时运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 18:36