PeekMessage(), GetMessage()

G

Guest

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.
 
C

Claes Bergefall

Take a look at IMessageFilter

/claes

Mahesh said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top