ScottH wrote:
Curious how you could embed a console in a Windows form.. any ideas ?
I made a tool that could either be pure command line or be windowed
depending on the arguments. If no arguments was supplied it was a
windowed interface. It also displayed a console. I just made a console
application and added windows to it like following.
[STAThread]
static void Main(string[] args)
{
if (args.Length == 0)
{
interactive = new Form1();
Application.Run(interactive);
}
else
DoCommandLine(args);
}
Hope this helps
Leon Lambert