Behavior in WinForm/Console Hybrid Application

后端 未结 4 2032
走了就别回头了
走了就别回头了 2021-01-20 14:28

I have a WinForm project that I want to be usable as a console app if certain arguments are passed into it. Using some tips I read from here, I used the following code to m

4条回答
  •  野的像风
    2021-01-20 14:40

    It looks like there is no way around it: 1) If I want the output in console mode to behave like a dedicated console app, the console window must always be there. 2) If I want to hide the console when I run it in windowed mode, I will lose the blocking prints.

提交回复
热议问题