开发者

How to add Console window to GUI Application without WinAPI?

开发者 https://www.devze.com 2023-04-12 00:37 出处:网络
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 manage

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

精彩评论

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