打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Hide Command Window in C# Console Application...
Sat, 05 Oct 2013 23:22:53 GMT 291 views
Sometimes, you do not want the console window to show up. Here is a really simple method to hide the command window in console application:
Change the output type from Console Application to Windows Application.
This can be done under Project -> Properties –> Application  in Visual Studio IDE:
在实际应用中,出于安全等因素的考虑,有时需要隐藏C#开发的控制台应用程序的窗口,让控制台程序在后台静默执行,比如定时执行的任务等。
这里和大家分享一个非常简洁高效的实现方式:
在Visual Studio中,打开“项目”—> "属性" ,点击左侧的“应用程序”,将右侧应用程序的输出类型,选择为 “Windows程序”,确定。
重新编译生成项目,运行一下试试 :)
Subscribe:RSS Feed
Share:
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
VC++ 控制台程序不弹出窗口的方法
WindowSpace - Most Organized Workspace
C#
delphi 让控制台窗口不现实出来
IE调试网页之三:使用 F12 工具控制台查看错误和状态 (Windows)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服