Sumit Anand

Sumit Anand

  • NA
  • 88
  • 5.5k

Stopping execution of function on Button Click ??

Jul 28 2015 2:11 AM
// For Start Button 
public void MyAction1() 
{   // Code Here }   

// For Exit Button function  
public void MyExit1() 
{     
Thread thrd1 = new Thread(() => MyAction1());     
thrd1.Abort(); 
}

Answers (1)