Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void DoWork()
- {
- Program p = new Program();
- p.connection(listView1.SelectedItems[0].Text, textBox1.Text, textBox2.Text);
- }
- private void button1_Click(object sender, EventArgs e)
- {
- new Thread(new ThreadStart(DoWork)).Start();
- //Do somthing and set your value
- }
Add Comment
Please, Sign In to add comment