开发者

C# program without UI

开发者 https://www.devze.com 2022-12-12 16:29 出处:网络
Is it possible to 开发者_如何学Gomake a Visual C# program that runs without a console or windows form? If so, how?Sure- set the build output type to Windows Application under Project Properties, and d

Is it possible to 开发者_如何学Gomake a Visual C# program that runs without a console or windows form? If so, how?


Sure- set the build output type to Windows Application under Project Properties, and don't show a form in Main. You can do whatever you want in there- you just have to manage the lifetime of the app somehow (eg, how do you plan to shut it down?)


You can also create a Windows Service app; start and stop the app via the Services Management console.

0

精彩评论

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