how to make a pause in c# form? : hi every one i'm trying to write a recursion program (tower of hanoi) and each step must shown in windows form one by one with a little delay but sleep and task.delay didn't work for me :(  
here's my code:    
  

    public void solve(int a,int b,int c,int n,PictureBox[] arr)  
            {  
                if (n == 1)  
                {  
                h[c].Push(h[a].Pop());  
                print(arr);  
                return;  
            }  
            solve(a, c, b, n - 1,arr);  
            h[c].Push(h[a].Pop());  
            solve(b, a, c, n - 1, arr);  
            print(arr);    
   //          System.Threading.Thread.Sleep();     
          }    

