Answer the question
In order to leave comments, you need to log in
(C#) Background processes in windows
Hello.
I’ll make a reservation, I’m not familiar with the development of desktop applications under windows, but it needs to be implemented .... It is
necessary that part of the application always works in the background without a gui. As I understand it, the main option is to create a service, but judging by the dispatcher in which there are a bunch of running processes, not everyone uses services. What other ways are there, and in general, which is preferable?
The application will be in C#.
Answer the question
In order to leave comments, you need to log in
You can just write an application without creating a form or a console window. Will be "invisible".
Instead of Application.Run(new Form1()); write Application.Run(); . Or don't write at all.
But if your application is meant to be a service, then I think it's better to make it as a service.
Services have a number of limitations, so they are not suitable for some tasks. If this is the case for you, then you can simply hide the form and remove the applications from the taskbar. You can add an icon to the tray so that the application gives at least some signs of life, but this is optional.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question