开发者

How can I start a process as a child of a winform in my C# program?

开发者 https://www.devze.com 2023-03-21 08:20 出处:网络
I have a process that was written 开发者_开发技巧by WPF and I want to start it in my program. I used \"process.start()\" and its worked successfully. But now I want to start my process as a child of a

I have a process that was written 开发者_开发技巧by WPF and I want to start it in my program. I used "process.start()" and its worked successfully. But now I want to start my process as a child of a form.


Do you mean you have a wpf usercontrol/form, and you want to display that in your winforms application?

If so, see this link: http://www.switchonthecode.com/tutorials/wpf-tutorial-using-wpf-in-winforms


You can't start process as a child of a Form! Process is just another application that is running on the computer no matter if it was build in windows forms or wpf or even assembly language.


You may mean starting new form as a child from main form?

using (ChildForm form = new ChildForm())
     form.ShowDialog(this); // this refers to main form object
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号