Get Window Handle from Inspector

468 Views Asked by At

Possible Duplicate:
Open Event of Window and Handle of Window

Hello all,

How do I get a window handle (IntPtr) from the Outlook window I have just opened?

        OutLook.Items items = oFolder.Items;

        foreach (OutLook.MailItem mail in items)
        {

              mail.Display();

              //IntPtr a = (System.IntPtr)mail.GetInspector.Parent;

I am new to C sharp.

0

There are 0 best solutions below