How to disable mousescroll on the map

Apr 21, 2011 at 4:04 PM

Hello,

How do I prevent some one from using the mousewheel and scrolling on the map?

I have tried the code below, but the map still scrolls.

map.MouseWheel += new MouseEventHandler(map_MouseWheel); 

void map_MouseWheel(object sender, MouseEventArgs e)
        {
            HandledMouseEventArgs ee = e as HandledMouseEventArgs;
            ee.Handled = true;
         }

Please help!!

Thanks,

VK.


Nov 20, 2012 at 12:38 PM

Hello.

Do you have found a solution ?

Regards,

Selq.