Click here to Skip to main content
15,878,748 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Solve Integration Equiation ? Pin
Adel83k9-Dec-04 8:34
Adel83k9-Dec-04 8:34 
GeneralRe: How to Solve Integration Equiation ? Pin
Dave Kreskowiak9-Dec-04 9:15
mveDave Kreskowiak9-Dec-04 9:15 
GeneralRe: How to Solve Integration Equiation ? Pin
Adel83k9-Dec-04 21:44
Adel83k9-Dec-04 21:44 
AnswerRe: How to Solve Integration Equiation ? Pin
cjengler10-Dec-04 0:09
cjengler10-Dec-04 0:09 
QuestionHow do I write a class extend to another form? Pin
ting6688-Dec-04 22:13
ting6688-Dec-04 22:13 
Generalwhere to create object Pin
montu33778-Dec-04 21:51
montu33778-Dec-04 21:51 
GeneralFilter messages Pin
A T I F8-Dec-04 20:20
A T I F8-Dec-04 20:20 
GeneralRe: Filter messages Pin
Alex Korchemniy8-Dec-04 20:42
Alex Korchemniy8-Dec-04 20:42 
MSDN link[^]

I'm sure someone has mentioned Application.AddMessageFilter Method. Its exactly what you need. The following example traps all left-button mouse activity:

#region IMessageFilter Members
public bool PreFilterMessage(ref Message m)
{
	if (m.Msg >= 513 && m.Msg <= 515)
	{
		System.Diagnostics.Trace.WriteLine("Caught");
		return true;
	}
	return false;
}
#endregion


If you have any problems post back.

This posting is provided "AS IS" with no warranties, and confers no rights.

Alex Korchemniy
GeneralRe: Filter messages Pin
A T I F9-Dec-04 18:27
A T I F9-Dec-04 18:27 
GeneralA Bug in Tab Control? Help! Pin
slylos8-Dec-04 19:27
slylos8-Dec-04 19:27 
Generalvb6 and C# Pin
sharon_s8-Dec-04 19:14
sharon_s8-Dec-04 19:14 
GeneralRe: vb6 and C# Pin
Alex Korchemniy8-Dec-04 20:27
Alex Korchemniy8-Dec-04 20:27 
GeneralRe: vb6 and C# Pin
Alexander Kent10-Dec-04 17:32
Alexander Kent10-Dec-04 17:32 
GeneralRe: vb6 and C# Pin
sharon_s10-Dec-04 21:35
sharon_s10-Dec-04 21:35 
Generalbit values Pin
Anonymous8-Dec-04 19:10
Anonymous8-Dec-04 19:10 
GeneralRe: bit values Pin
Alex Korchemniy8-Dec-04 20:10
Alex Korchemniy8-Dec-04 20:10 
GeneralPointToClient and PointToScreen Pin
Tyrus1828-Dec-04 18:21
Tyrus1828-Dec-04 18:21 
GeneralRe: PointToClient and PointToScreen Pin
Alex Korchemniy8-Dec-04 18:43
Alex Korchemniy8-Dec-04 18:43 
GeneralRe: PointToClient and PointToScreen Pin
Tyrus1828-Dec-04 18:46
Tyrus1828-Dec-04 18:46 
GeneralRe: PointToClient and PointToScreen Pin
Jay Shankar8-Dec-04 18:45
Jay Shankar8-Dec-04 18:45 
GeneralRe: PointToClient and PointToScreen Pin
Anonymous8-Dec-04 18:47
Anonymous8-Dec-04 18:47 
GeneralRe: PointToClient and PointToScreen Pin
Jay Shankar8-Dec-04 18:52
Jay Shankar8-Dec-04 18:52 
GeneralRe: PointToClient and PointToScreen Pin
Anonymous8-Dec-04 19:02
Anonymous8-Dec-04 19:02 
GeneralRe: PointToClient and PointToScreen Pin
Jay Shankar8-Dec-04 19:14
Jay Shankar8-Dec-04 19:14 
GeneralRe: PointToClient and PointToScreen Pin
Tyrus1828-Dec-04 19:19
Tyrus1828-Dec-04 19:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.