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 / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

Ask child controls ignore received event and let its parent to process it.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zlf - 27 Jun 2007 04:45 GMT
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

Rate this thread:







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.