public static void SetMinTS(this ProgressBar x, Int32 s)
 {
     if (x.InvokeRequired)
     {
         x.Invoke(new EventHandler(delegate(object o, EventArgs a)
         {
             x.SetMinTS(s);
         }));
     }
     else
     {
         x.Minimum = s;
     }
 }