Exemplo n.º 1
0
 // Handles the mousewheel events.
 private void Form1_MouseWheel(Object sender, MouseEventArgs e)
 {
     // Check which direction the mousewheel was rolled and act accordingly.
     if (e.Delta >= 0)
     {
         map.ZoomIn();
         Refresh();
     }
     else
     {
         map.ZoomOut();
         Refresh();
     }
 }