Hello All
Is there an alternative of Win32 API's PeekMessage() and GetMessage() functions in .NET
What I want is to peek in the message queue for a message and if it is some specific message, I need to discard it from being dispatched to the form
Can this be achieved in .NET? I couldn't find any method in System.Windows.Forms.Form class

Thanx in Advance
Mahesh.

Re: PeekMessage(), GetMessage() by Claes

Claes
Mon Feb 09 04:29:03 CST 2004

Take a look at IMessageFilter

/claes

"Mahesh" <meghanshic@hotmail.com> wrote in message
news:F7ED1EED-C06B-46C2-B135-B47D1C488D1F@microsoft.com...
> Hello All,
> Is there an alternative of Win32 API's PeekMessage() and GetMessage()
functions in .NET?
> What I want is to peek in the message queue for a message and if it is
some specific message, I need to discard it from being dispatched to the
form.
> Can this be achieved in .NET? I couldn't find any method in
System.Windows.Forms.Form class.
>
> Thanx in Advance,
> Mahesh.