/// <summary>
 /// Make sure that the PicBox have the focus, otherwise it doesn´t receive
 /// mousewheel events !.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PicBox_MouseEnter(object sender, EventArgs e)
 {
     if (PicBox.Focused == false)
     {
         PicBox.Focus();
     }
 }
Exemplo n.º 2
0
 void pictureBox_MouseEnter(object sender, EventArgs e)
 {
     pictureBox.Focus();
 }