Ejemplo n.º 1
0
 void updatepercent(long per)
 {
     if (InvokeRequired)
     {
         Invoke(new LongDelegate(updatepercent), new object[] { per });
     }
     else
     {
         try
         {
             ProgressBar1.Value = (int)per;
             ProgressBar1.Invalidate();
         }
         catch (Exception) { }
     }
 }