Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wpf 中使用有区别吗 #1

Open
jiaweirobot opened this issue Jul 18, 2017 · 2 comments
Open

wpf 中使用有区别吗 #1

jiaweirobot opened this issue Jul 18, 2017 · 2 comments

Comments

@jiaweirobot
Copy link

我建立的wpf项目,项目里面建立的winform窗体,winform打开外部exe,却只能打开程序,而无法嵌入进去

@bitzhuwei
Copy link
Owner

不好意思,WPF我不懂。

@jiaweirobot
Copy link
Author

谢谢 已经解决了,wpf 项目中的application 跟 winform 中的application 不同, 是没有idle 事件,我自己做了一些修改, 可以用这种方式等待进程的打开
while (true)
{
if ( !(AppProcess.MainWindowHandle== IntPtr.Zero))
{
break;
}
Thread.Sleep(50);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants