Frist of all, thank's for this great tool!
But i have a problem:
i'd like to disable the scroll-bar with:
imageBox1.AutoScroll = false;
but then i cant't scroll with the mouse-wheel?
can anybody help me?
Hello,
I'm not quite sure what you mean regarding scrolling with the mouse wheel - the mouse wheel doesn't generally scroll the control, but rather zooms the control.
However, this is actually broken if you do set AutoScroll to false for reasons I haven't had time to work out and fix yet. Is this what you mean when you say you can't scroll with the wheel?
Regards;
Richard Moss
Hi, you can override the OnMouseWheel event and scroll the image.
protected override void OnMouseWheel (MouseEventArgs e) {
base.OnMouseWheel (e);
ScrollTo (HorizontalScroll.Value, VerticalScroll.Value - e.Delta);
}