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; }
private void PerformScrollByAmount(SWF.ScrollBar scrollbar) { if (scrollbar.InvokeRequired == true) { scrollbar.BeginInvoke(new ScrollByAmountDelegate(PerformScrollByAmount), new object [] { scrollbar }); return; } invoke(scrollbar); invoke = null; }