title: OLE Control window handle error with WebBrowser and Delphi 2007
body: <p>I have run into an issue a couple of weeks ago that appear to have no logical explanation. I'm building an application with Delphi 2007 using AlphaControls and a WebBrowser component placed on a form. The <code>TWebBrowser</code> fetches a banner from the web and displays it into the UI. bad thing is that as soon as the form with the banner is displayed, I get the "<strong>Could not obtain OLE Control window handle</strong>", while the browser is being displayed outside of the form, in the top left corner of the desktop.</p>
  
  <p>I've been trying basically anything to figure it out, but the debugger does not provide too much information about what's going on (that's all I get: First chance exception at $770C4B32. Exception class <code>EOleError</code> with message 'Could not obtain OLE control window handle'. Process project1.exe (3700)). Funny thing is that the same <code>TWebBrowser</code> on Form1 of a new project works without any issues.</p>
  
  <p>Any thoughts on that would be highly appreciated.</p>