i tried to read MainWindowHanlde For Acrobat Reader 10 Process so i can SetParent API i tried this
private Process pDocked;
private IntPtr hWndDocked;
pDocked = Process.Start(path, PDFPath);
while (hWndDocked == IntPtr.Zero)
{
pDocked.WaitForInputIdle(1000);
pDocked.Refresh();
if (pDocked.HasExited)
{
return;
}
hWndDocked = pDocked.MainWindowHandle;
}
and the result is hWndDocked = 0 even i tried this on acrobat reader 9 and i got the MainWindowHandle but it didn't work on acrobat reader 10
please help And Thanks