Guest User

Untitled

a guest
Dec 18th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.        public void DoWork()
  2.         {
  3.             Program p = new Program();
  4.             p.connection(listView1.SelectedItems[0].Text, textBox1.Text, textBox2.Text);
  5.         }
  6.  
  7.  
  8.         private void button1_Click(object sender, EventArgs e)
  9.         {
  10.  
  11.             new Thread(new ThreadStart(DoWork)).Start();
  12.            
  13.                 //Do somthing and set your value
  14.                
  15.            
  16.  
  17.                      
  18.            
  19.         }
Add Comment
Please, Sign In to add comment