Hi,

I have trouble understanding why this fails but here is what I'm trying
to do:

I have 1 form with 2 controls in it. I created a MouseDown handler for
both controls (setting up different internal things each) and 1 MouseUp
handler for the form since both controls can use the same code.

Now, what I was excepting was:

- The 2 controls would catch and call their MouseDown handlers: that works.
- And as none of the controls have no MouseUp handler the message would
be propagated to the parent form where the form MouseUp handler would be
called: that doesn't work.

Capturing the mouse doesn't help. Any ideas?

Thanks

Re: MouseDown, MouseUp by Bram

Bram
Fri Mar 11 09:30:29 CST 2005

Unfortunately, that is not true. Although the controls have no event
handlers for the MouseDown event, these controls do block the parent
Control in their respective Regions. You'll have to propagate these
events manually.


Re: MouseDown, MouseUp by Robbe

Robbe
Sun Mar 13 20:48:00 CST 2005

You can force it.

http://www.eggheadcafe.com/articles/transparentform_send_mouse_click_to_desktop.asp

--
2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net/home/listings.aspx



"barr" <b..r@n.nomojo.com> wrote in message
news:lfiYd.3$rU1.0@fe70.usenetserver.com...
> Hi,
>
> I have trouble understanding why this fails but here is what I'm trying to
> do:
>
> I have 1 form with 2 controls in it. I created a MouseDown handler for
> both controls (setting up different internal things each) and 1 MouseUp
> handler for the form since both controls can use the same code.
>
> Now, what I was excepting was:
>
> - The 2 controls would catch and call their MouseDown handlers: that
> works.
> - And as none of the controls have no MouseUp handler the message would be
> propagated to the parent form where the form MouseUp handler would be
> called: that doesn't work.
>
> Capturing the mouse doesn't help. Any ideas?
>
> Thanks
>