How to make our form (application) run when windows start in C #?

I created an application using C # 3.0. I need this application to start and run continuously when Windows starts. After you configure and install the application, this process should happen. Please give your suggestions for this.

+3
source share
5 answers

How about adding a program to the startup folder during installation? When you create your setup project, simply add a shortcut to exit the main program to the destination folder of the destination PC.

+3
source

, Windows , Windows. GUI Windows /, .

, , Windows Forms : , . , ( "" ) , " " ( ). , .

, Visual Studio. , , Thread , . OnStart OnStop Service ( Abort ).

, " ", , installutil , ​​, .

, - - , ; Named Pipes, Memory-Mapped Files WCF (.NET 3.5+) Named Pipes/TCP .

:

http://msdn.microsoft.com/en-us/library/aa984464(VS.71).aspx

, .

+4

Windows . , , , , .

+3

? .

If you want to do this in your C # code, you will have to edit it in the registry. Read this article. (I think you will also need administrator privileges in order to do this)

0
source

Use WindowService in this OnStart () {......}, you will write code to launch your application

-1
source

Source: https://habr.com/ru/post/1755917/


All Articles