Lienau
Lienau

Reputation: 1353

C# program without UI

Is it possible to make a Visual C# program that runs without a console or windows form? If so, how?

Upvotes: 4

Views: 2235

Answers (2)

Dour High Arch
Dour High Arch

Reputation: 21722

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

Upvotes: 5

nitzmahone
nitzmahone

Reputation: 13950

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?)

Upvotes: 13

Related Questions