使用 VS 2008 Express 时打开控制台/命令窗口
我有 Visual Studio 2008 Express 的 VB 和 C# 版本。 当我在任一版本中运行控制台应用程序时,控制台都不会像 VS 2005 中那样在旧的 DOS 风格命令窗口中打开,而是实际上会黑掉连接到我的计算机的两个显示器,并将整个屏幕空间视为控制台。
有人知道当我运行应用程序时如何让应用程序在小的命令类型窗口中运行吗?
更新: 就像控制台正在全屏运行一样。 如果我设置一个断点,从 IDE 切换到控制台,然后按 Alt+Enter,它会切换到我想要的小窗口,但我仍然不知道如何使应用程序以这种方式从控制台启动。
我可以发布一个屏幕截图,但它看起来像一个大的黑色方块......没有窗户,没有框架,只有沮丧的漆黑。
I have both the VB and C# versions of Visual Studio 2008 Express. When I run a console application in either version, instead of the console opening in an old DOS style command window like it does in VS 2005, it actually blacks out both monitors attached to my computer and treats the entire screen real estate as the console.
Anyone know how to get the app to run in a small command-type window when I run it?
Update:
It's like the console is running Full Screen. If I set a break point, switch from the IDE t the console and then hit Alt+Enter it switches to the small window that I want, but I still can't figure out how to make the app start with the console that way.
I could post a screenshot but it would look like a big black square...no window, no frame, just the inky blackness of frustration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个:按 Windows 键 + R 打开“运行”对话框。 输入cmd并按回车键。 这将打开命令提示符。 如果它以最大化方式打开,则取消最大化(“恢复”)它。 然后关闭它。 现在看看它是否开始最大化。
我认为这是由于 Windows 保存了窗口的默认大小和位置,希望这将重置默认值。
-编辑-好的,那么试试这个: CMD 全屏 Visual Studio
Try this: Press your windows key + R to open a Run dialog. Type cmd and hit enter. This will open a command prompt. If it opens maximized, then un-maximize ("restore") it. Then close it. Now see if it starts maximized.
I think it's due to Windows saving the default size and placement of windows, and hopefully this will reset the default.
-Edit- Okay try this then: CMD Full Screen Visual Studio
尝试按 Alt+Enter 退出全屏模式。
Try pressing Alt+Enter to get out of full screen mode.