I like to use the mouse wheel in a container control to scroll up and down, using the same code as for the horizontal scrollbar.
using the scrollbar it stops at the top but scroll down until no more data are displayed.
DeCanvas.Scroll ( 0, li_delta, 0, 0, DeCanvas.Width, DeCanvas.Height )
How can I control the top and bottom boundaries using the mouse wheel ? it should stop at the top and bottom of data displayed.
the container control contains labels and text fields which can vary in numbers.
thanks
2 posts - 2 participants