bring a console window to front in c#

后端 未结 3 1923
名媛妹妹
名媛妹妹 2020-12-03 05:50

How can I bring a console application window to front in C# (especially when running the Visual Studio debugger)?

3条回答
  •  囚心锁ツ
    2020-12-03 06:38

    Get two monitors (at least) and open VisualStudio in the secondary monitor. When you run your app from within VisualStudio it will start up by default on the primary monitor. Since it's the last app to be opened, it starts on top and changing over to VisualStudio doesn't affect it. Works for me anyway.

    If you don't already have a second monitor, IMHO, you should.

提交回复
热议问题