I know that you can create a Windows Forms application and set it to be invisible. And if I create a console application (the console window will open- and I have no use for the console), how do I create a simple application that has no GUI at all?
Two options. Great, now that Visual Studio Community is installed, you have two options for developing and running C programs on Windows. The first option involves using any text editor you like to write your source code, and using the "cl" command within the Developer Command Prompt to compile your code.
1. We need to click on the extension button that displays a sidebar for downloading and installing the C/C++ extension in the visual studio code. In the sidebar, type C Extension. In this image, click on the Install button to install the C/C++ extension.
Create a windows application, remove the Form1.cs file, edit the Program.cs file to remove the lines
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Put your own code instead, and you're done.
You could create it as a windows service.
This question also has some options for running an existing console application with no console window, so you could write a console application, then write a console application which launches that with its window hidden and then closes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With