none
How to hook events in Designer?

    Question

  • Hi,

    I want to process the changes in Designer. If I click on that control I want to change the backcolor of that control in Designer. I have created control from ContainerControl. It receives the WM_MOUSEACTIVATE msg other messges or not receving(like WM_LBUTTONDOWN).

     

    How can I achive this?

    - Lingaraj S.

    Monday, June 07, 2010 2:41 PM

Answers

  • The WinForms namespace has remained unchanged since the release of .NET 2.0, and will likely remain that way.

    Mouse Events Consumed / Not Raised in 2.0 Designers | Microsoft ...

    That bug report was closed out as "By Design".  2.0 filtered mouse events from reaching forms and their controls in DesignMode.  Mouse clicks never reach the form design surface. 

    Martin reported that they mouse events are trapped by an invisible "Adorner" window sitting over the Form Designer surface.  This window's purpose and function is described at the link.

    Rudy  =8^D


    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by Helen Zhou Friday, June 11, 2010 7:04 AM
    Monday, June 07, 2010 4:45 PM

All replies

  • The WinForms namespace has remained unchanged since the release of .NET 2.0, and will likely remain that way.

    Mouse Events Consumed / Not Raised in 2.0 Designers | Microsoft ...

    That bug report was closed out as "By Design".  2.0 filtered mouse events from reaching forms and their controls in DesignMode.  Mouse clicks never reach the form design surface. 

    Martin reported that they mouse events are trapped by an invisible "Adorner" window sitting over the Form Designer surface.  This window's purpose and function is described at the link.

    Rudy  =8^D


    Mark the best replies as answers. "Fooling computers since 1971."
    • Marked as answer by Helen Zhou Friday, June 11, 2010 7:04 AM
    Monday, June 07, 2010 4:45 PM
  • //  links
    //  http://msdn.microsoft.com/en-us/library/5ytx0z24%28VS.80%29.aspx
    //  http://msdn.microsoft.com/en-us/library/35ea88wb.aspx
    //  http://msdn.microsoft.com/en-us/library/307hck25.aspx
    Mark the best replies as answers. "Fooling computers since 1971."
    Friday, June 11, 2010 11:38 PM