M_Mogharrabi
M_Mogharrabi

Reputation: 1389

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.

Upvotes: 0

Views: 768

Answers (3)

Jalal Said
Jalal Said

Reputation: 16162

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.

Upvotes: 1

user586399
user586399

Reputation:

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

Upvotes: 0

George Duckett
George Duckett

Reputation: 32418

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

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

Upvotes: 1

Related Questions