Hello. How are you? I'm good.
Today, I'm going to show you how to make a background app. When I say a background app, I mean a thread that runs after a form closes.
First, we need a form. Make it as small as possible so just the upper right buttons show. This is just so you won't notice it easily. Then, left click and go to "view code". Here is were we will write the code.
We will be using
System.Threading, so write at the top:
Okay. Now we make the thread make the event `Form1_load`. After that we write some code in there it should look like this:
private void Form1_Load(object sender, EventArgs e)
var link1 = new Form1();
Thread thread1 = new Thread(link1.start1);
Now we have a thread start and the form auto-closes, so we just need to make a starting method:
public void start1()
//code goes here.
I hope this helps you. The reason I made this How-To is because I couldn't find an existing one.