Listbox messages under CF 1.1 in VS2003 RRS feed

  • Question

  • Hi,

    is there a way of filtering the messages related to a listbox ?

    I added a message filter (IMessageFilter) to my application, which allows to filter messages like


    but i don't see messages like


    They reason why i'm asking is that i should be able to prevent the user to change the index in the listbox. I tried setting the "enabled" property to false, But then the forecolor changes to grey, which is not acceptable by the costumer as it is diff. to read in the sunlight!

    I also tried overriding the "SelectedIndexChanged" event, and set the selectedIndex back to what it was ... but then i see a small index change, causing the selected item to change (very quick ok, but still visible)

    Any help is welcome... (keep in mind, working with wince 4.1 and CF 1.1)



    (wisdom is only possessed by the learning - BG)
    Thursday, June 29, 2006 7:53 AM


  • Due to the nature of MessageFilter only posted messages can be intercepted - mostly we are talking about keyboard and mouse. Setting Enabled to false is the correct way to do this.
    Thursday, June 29, 2006 10:16 PM