I have a WindowsForms UI in C#. i have a Panel and a PictureBox in it. I simply get Mouse Wheel event by form and then zoom PictureBox in panel
public MainWindow()
{
InitializeComponent();
this.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.zoom_handler);// Capture Mouse wheel event
}
the problem is that when i use a Trackbar, Trackbar gets the mouseWheel event and i can't zoom image anymore. I can't release it by click on PictureBox or Panel. Now what i must do?