How can I start a process as a child of a winform in my C# program?
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
精彩评论