Hello,
I'm developping an UserControl, filled with child controls on it. I want to
make the UserControl to display a message when user db-click on any place on
it, but it seems now, all of those db-click events are hold by its child
controls, what should I do to ask child controls ignore received events and
pass them to its parent to process it.
Thanks
zlf
G Himangi - 27 Jun 2007 08:09 GMT
You cannot completely bypass the double-clicking on child controls since
they are actually present on the usercontrol
You can try handling the DoubleClick event of the child controls and then
call some method of the user control in the handler.
---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------
> Hello,
> I'm developping an UserControl, filled with child controls on it. I want
[quoted text clipped - 6 lines]
>
> zlf
Ciaran O''Donnell - 27 Jun 2007 13:26 GMT
You should be able to handle the Message in WndProc if you override it. You
will need to get the message details for a double click but the user control
is actually responsible for telling the child controls they have been clicked
on so if you override WndProc, you should be able to stop that and handle it.
here's and intro to the messaging in .net and windows
http://www2.sys-con.com/ITSG/virtualcd/Dotnet/archives/0112/hankins/index.html

Signature
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
> Hello,
> I'm developping an UserControl, filled with child controls on it. I want to
[quoted text clipped - 6 lines]
>
> zlf