What happens if an application is run via Task Manager on a Windows Server? I have a program that is created as Winform application. I want the application to run a process that normally is started by a user clicking a button.
If I set the Task manager to send a parameter to the Winform. Is there a way to have the application read that parameter and run a function without the window opening, but run the function? If so, what event should I put the code in?
edit: The question I should be asking is, is it possible to run a winform application where the form is not showing? Basically, launch an application, run some functions in the background, and not show the any forms, like a console application. The reason i don't want to create a console application is because I also need the winform for other purposes.