dwmkerr / consolecontrol

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
MIT License
723 stars 169 forks source link

Multiple Console Windows #23

Closed markentingh closed 8 years ago

markentingh commented 8 years ago

I am writing an app using your control (thank you so much for such an amazing control btw), but I cannot seem to use more than one instance of the control on a single form. When I execute the function StartProcess("cmd",null) on each instance, only one instance loads command prompt.

markentingh commented 8 years ago

I just realized, it was an issue with creating new tabs in the tab control, creating a new console for the new tab, but not giving the tab focus. Once I gave the tab focus (before executing StartProcess), the console works correctly.

jtorjo commented 8 years ago

Hey,

Funny - I'm doing the same thing - see my fork as well if you want.