ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.