Mukesh H

Mukesh H

  • NA
  • 2
  • 1.3k

PictureBox scrollbar bug

Sep 18 2014 3:32 AM
Hi,
 
I am building an application which can Zoom and Displaying Image Coordinates on the ToolStripStatus.
I use MouseWheel to zoom over the PictureBox. It zooms area under the mouse cursor.
 
The bug is that the horizontal & vertical scrollbar always shifts to the left and top positions. It zooms to the Top-Left corner.
 
The scrollbar & zoom works fine if I disable the conversion of Cursor coordinates to Image coordinates.
 
Any help is great!
 
Thanks