How to add Console window to GUI Application without WinAPI?
I want to use a console window in my gui application. It would be used seldom: open, display some data and then close. Now I am using Win API functions AllocConsole and FreeConsole but I seek a managed way to do It from .NET. Is there开发者_开发技巧 any solution for It?
You can do it by using Process you can use Process.Start(); to start a Process and Process.Startinfo.Argument to set input argument's ,and you can also with StreamOut or with StreamError get Console Application output .
精彩评论