Im trying to figure out how to zoom in and out of a MS chart by rolling the mouse back and forth. Ive had a look in the charts event list but cant find anything which would be suitable.
Is this possible + whats the best way to go about doing this?
Im trying to figure out how to zoom in and out of a MS chart by rolling the mouse back and forth. Ive had a look in the charts event list but cant find anything which would be suitable.
Is this possible + whats the best way to go about doing this?
Copyright © 2021 Jogjafile Inc.
 
                        
As I mentioned in a comment above, in my code the Charts are dynamically created at design time, but I see there is indeed a MouseWheel event:
AddHandler newChart.MouseWheel, AddressOf Chart_MouseWheel, this should be usable for you:The function signature is as follows:
You'll want to use the
e.Deltaproperty to understand how many detentes the Wheel has moved.HTH