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.