I want to create a basic multi-thread application using a progress bar. Meaning that this progress bar will run on a different thread while the main thread is busy in the large process it is doing. I've seen a lot of tutorials about it. But the thing that they are multi-threading is the one that doing the large process. The progress bar in the other form is just showing a simple progress bar that runs and complete using a timer.
This is the code I have now.
For the thread:
public void thread()
{
  Form6 for6 = new Form6();
  for6.Show();
}
TH1 = new Thread(thread);
TH1.Start();
For the progress bar (Code inside form 6)
 private void timer1_Tick(object sender, EventArgs e)
    {
        progressBar1.Increment(+1);
        if (progressBar1.Value == 99)
        {
            this.Close();
        }
    }
    private void Form6_Load(object sender, EventArgs e)
    {
        timer1.Start();
    }
My problem is the thread in here doesn't run the Form6. Is there any way for me to do this?
 
     
     
     
    