1

在滚动框拖动期间触发事件时,是否有保持滚动条保持在其当前位置(myScrollBar.Value)的方法?Scroll在拖动滚动框后释放滚动框后,我可以让它工作,但我试图在滚动它时让它发生

// this example doesn't work, but it is what I am trying to do
private void myScrollBar_Scroll(object sender, ScrollEventArgs e)
{
   // as I scroll keep resetting NewValue back to 0 -
   // this makes the value 0 only after I release the scroll box
   e.NewValue = 0;
}

任何关于如何解决这个问题的建议都会很棒。谢谢。

4

0 回答 0