title: How to send parameters together with a method to a new thread?
body: <p>At the moment, I've got working:</p>
  
  <pre><code>public void logowanie()
  {
  int x=5,y=5;
  ...
  }
  
  private void button2_Click(object sender, EventArgs e)
          {
              Thread thread2 = new Thread(new ThreadStart(logowanie));
              thread2.Start();
              //logowanie("xd", "xd", "xd");
  
          }
  </code></pre>
  
  <p>And that works. Is it possible to make something like</p>
  
  <pre><code>public int logowanie(int x, int y)
  {
  ...
  }
  
  private void button2_Click(object sender, EventArgs e)
          {
              Thread thread2 = new Thread(new ThreadStart(logowanie(5,5)));
              thread2.Start();
              //logowanie("xd", "xd", "xd");
  
          }
  </code></pre>
  
  <p>I've just started with threading things. Thanks</p>