Wrox Programmer Forums
|
C# 2008 aka C# 3.0 Discuss the Visual C# 2008 (aka C# 3.0) language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2008 aka C# 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2010, 05:00 PM
Authorized User
 
Join Date: Nov 2008
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I google it and found some exampels and tried one of them i catched the mouse click event
but i didn't know how to direct it to the application once again
 
Old February 28th, 2010, 05:09 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well tell us the URL of the example of the you are referring to and we might have some idea what you are talking about. Perhaps even show a sample of your code.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old March 1st, 2010, 05:18 AM
Authorized User
 
Join Date: Nov 2008
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

one of the sites i found
http://geekswithblogs.net/Jaggi/arch.../02/67999.aspx
another one
http://blogs.msdn.com/csharpfaq/arch...20/245412.aspx
 
Old March 1st, 2010, 05:35 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

OK, I wasn't familiar with that interface but it seems fairly simple.

You can't however 'stop' the flow of the messages, therefore I'm confused by you asking how to forward it on once again? This method simply allows you extra control over certain messages that are passed to an application before they are handled by the normal .Net eventing model.

It seems likely to be a little used function - so perhaps if you can explain what you are trying to achieve we might be able to help.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old March 2nd, 2010, 05:41 AM
Authorized User
 
Join Date: Nov 2008
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in the beginning i created my own class without inheriting it from control class or usercontrol class and want my class to capture the mouse click event so that when i click on on my graphical object it respond to mouse click so i wanted to use IMessagFilterto catch the mouse click event and i success to catch it but it respond to any click on the form and not only my object and even if you registered a mouse click to the form it will not respond to it , so i asked how to redirect it once again to the application





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom style class oldSkool BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 0 January 9th, 2007 03:39 AM
Custom Default Class Template Bob Bedell C# 3 November 11th, 2006 03:18 PM
Ajax and Custom Class ~Bean~ ASP.NET 1.0 and 1.1 Professional 0 April 6th, 2006 12:33 PM
DataRow Vs Custom Class RM82 BOOK: ASP.NET Website Programming Problem-Design-Solution 2 April 3rd, 2004 06:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.