UserControl sending 2 MouseDown events and then a MouseUp event

M

Mark

Hi,

I am seeing something that seems quite odd to me... I have a user
control that is trapping the MouseDown and MouseUp events. I appear to
be getting 2 MouseDown events followed by the MouseUp event. I am not
trapping the MouseMove event so have no code for that. I commented out
all my code in both handlers just to make sure I was not affecting
something between the mouse down and mouse up, but I STILL get 2 mouse
downs followed by a mouse up. This is really screwing up my scrolling
code and other code that handles custom internal events.

I cannot seem to find any other posts that look similar to this one.
Any help would be greatly appreciated.

thanks,
Mark.
 
D

Daniel Moth

Can you post a small repro?

I tried a simple UserControl on a form. I put Debug.WriteLine statements in
the mouse down/up event handlers of both the UserControl and the form. I
only observe each event once (uc_down, frm_down, uc_up, frm_up).

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top