ScrollableControl Scroll event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

What is the best way to capture scroll events (especially while dragging the scroll box) in a ScrollableControl with the AutoScroll property set to true? I've been thinking of using WndProc, since it receives a WM_VSCROLL msg, but even in here, how can I use WParam to get relevant info

Thanks

Yaron
 
Attach a handler to the MouseMove event. u get instance of MouseEventArgs as
the event arguments, use the member Delta of event arguments...

Abhijeet Dev

Yaron said:
Hi,

What is the best way to capture scroll events (especially while dragging
the scroll box) in a ScrollableControl with the AutoScroll property set to
true? I've been thinking of using WndProc, since it receives a WM_VSCROLL
msg, but even in here, how can I use WParam to get relevant info?
 
Back
Top