Regarding IMessageFilter problem

hi,

I m trying to use IMessageFilter in .net 2.0.I got it from OpenNetCF. But its giving error. Can any help me in this

Thanx in advance



Answer this question

Regarding IMessageFilter problem

  • rvaas

    Can you post details of the error, and ideally the code you have written which is causing it

    Peter



  • joe131

    hello sir,

    thanx for the reply peter, I have sent u the personal mail also for my problem. But didnt gotr reply.I m trying to do like this::

    public class MessageFilterClass : IMessageFilter
    {
    public bool PreFilterMessage(ref Message msg)
    {
    MessageBox.Show("dfdf");
    }
    }

    and using as:

    Application2.AddMessageFilter(new MessageFilterKey());



  • Richard Pfeiffer

    I m getting following error::



    Error 1 'DeviceApplication2.MessageFilterClass' does not implement interface member 'OpenNETCF.Windows.Forms.IMessageFilter.PreFilterMessage(ref Microsoft.WindowsCE.Forms.Message)' 31 D:\WM_Projects\DeviceApplication2\DeviceApplication2\Form1.cs 18 DeviceApplication2
    plz help needed. Wht i want to do is:

    Whenever user starts any application else than mine, when he presses the Enter or Return key, I want to handle this event from my application. Infact can u plz tell me How can i have value for WM_KEYUP and RETURN key

    Thanx in advance


  • CJ Clark

    OpenNetCF.org has their own forum:

    http://www.opennetcf.org/forums/default.asp CAT_ID=4

    I see you have posted this question there as well.



  • Regarding IMessageFilter problem