Handling mouse hover event RRS feed

  • Question

  • Hi All,

           Is it possible to hand the hover event for item in outlook? For example, i would like handling hover event when mouse be over the contact item.

    Saturday, May 21, 2011 8:33 AM



    Hi Sergey,


    Thanks for posting in the MSDN Forum.


    It’s based on my experience that we are hard to do that via Outlook PIA. Perhaps you are able to handle this via Window API.


    This is a sample for how to capture the mouse hove event. . I hope it can help you.

    PS: This is the sample snippet:

    // Get a handle to an application window.
    [DllImport("USER32.DLL", CharSet = CharSet.Unicode)]
    public static extern IntPtr FindWindow(string lpClassName,
      string lpWindowName);
    // Activate an application window.
    public static extern bool SetForegroundWindow(IntPtr hWnd);
    // Send a series of key presses to the Calculator application.
    private void button1_Click(object sender, EventArgs e)
      // Get a handle to the Calculator application. The window class
      // and window name were obtained using the Spy++ tool.
      IntPtr calculatorHandle = FindWindow("CalcFrame","Calculator");
      // Verify that Calculator is a running process.
      if (calculatorHandle == IntPtr.Zero)
        MessageBox.Show("Calculator is not running.");
      // Make Calculator the foreground application and send it 
      // a set of calculations.

    You can find them at 

    Have a good day,



    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, May 23, 2011 6:57 AM