ScrollableControl Scroll event

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
 
A

Abhijeet Dev

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top