Article View: adobe.acrobat.sdk
Article #18Re: AcroPdf Active X control with Reader 9.0
From: Ian_McCloy
Date: Fri, 03 Apr 2009 20:58
Date: Fri, 03 Apr 2009 20:58
14 lines
1177 bytes
1177 bytes
I fixed this problem guys
Just put the AxAcroPDF object inside a panel on your windows form then add a OnClosing event for the form and with the following I don't get the errors any more
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
Controls.Remove(panel1);
System.Threading.Thread.Sleep(500);
}
without the sleep call I would sometimes get the error, I didn't fiddle with the sleep time though.
Hope this helps!
CodingMoose
Technical Details
Message-ID:
<59b5b204.8@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossingReferences:
<59b5b204.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10177e,bd1419aca1a10693 X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Ian_McCloy@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: Re: AcroPdf Active X control with Reader 9.0 Message-ID: <59b5b204.8@webcrossing.la2eafNXanI> Date: Fri, 3 Apr 2009 13:58:57 -0700 References: <59b5b204.-1@webcrossing.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit