PeekMessage(), GetMessage()

Discussion in 'Microsoft Dot NET Framework Forms' started by Guest, Feb 9, 2004.

  1. Guest

    Guest 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.
     
    Guest, Feb 9, 2004
    #1
    1. Advertisements

  2. Take a look at IMessageFilter

    /claes

    "Mahesh" <> wrote in message
    news:...
    > 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.
     
    Claes Bergefall, Feb 9, 2004
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefan Kiryazov
    Replies:
    2
    Views:
    1,272
    Stefan Kiryazov
    Jun 4, 2004
Loading...

Share This Page