Пример #1
0
 private void PerformScrollByPercent(SWF.ScrollBar scrollbar, int value)
 {
     if (scrollbar.InvokeRequired == true)
     {
         scrollbar.BeginInvoke(new ScrollByPercentDelegate(PerformScrollByPercent),
                               new object [] { scrollbar, value });
         return;
     }
     scrollbar.Value = value;
 }
Пример #2
0
 private void PerformScrollByAmount(SWF.ScrollBar scrollbar)
 {
     if (scrollbar.InvokeRequired == true)
     {
         scrollbar.BeginInvoke(new ScrollByAmountDelegate(PerformScrollByAmount),
                               new object [] { scrollbar });
         return;
     }
     invoke(scrollbar);
     invoke = null;
 }