Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

UserControl sending 2 MouseDown events and then a MouseUp event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark - 10 Apr 2006 18:55 GMT
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.
Daniel Moth - 20 Apr 2006 14:51 GMT
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
--
http://www.danielmoth.com/Blog/

> Hi,
>
[quoted text clipped - 12 lines]
> thanks,
> Mark.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.