开发者

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 .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜