Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Capturing or preventing mouse events in a .Net control

$
0
0

Hi

I'm fairly new to C# windows forms.  I have a third party .net component that plots an xy graph on a control.  This control has many mouse events that i can use but the only one I need is mouse double click.

However, the control monitors the mouse motion over itself.  It has an option that will show data values as the mouse moves over at the graph.  This data value display can be disabled however the control is still following the motion of the mouse. Now if there are a small number of data point on the graph this is no problem.  However when the data set gets large such as when following real time signals, the display becomes stop and go as soon as the mouse moves around on it.

I do not want this behaviour. SO, what I want is that the control ignores any motion of the mouse but still allow a double click or a click and drag (as in drawing a box to zoom the data).

How can this be done?  It has to be isolated to the control.  As a hint, I can click outside the control, hold the mouse down, and when I enter the graph with the mouse it does not slow down at all.

Thanks for any suggestions.

Tom


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>