title: User Control in Folder Home Page Doesn't Initialize
body: <p>I am programming Outlook 2003 add-in using Visual Studio 2008.</p>
  
  <p>Add-in uses embedded user control in folder's home page, like as it was
  recommended. Here is HTML code for folder's home page:</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;style type="text/css"&gt;body{overflow: hidden}&lt;/style&gt;&lt;/head&gt;
      &lt;body rightmargin = '0' leftmargin ='0' topmargin ='0' bottommargin = '0' onload='OnBodyLoad()'&gt;
          &lt;script&gt;
              function OnBodyLoad()
              {
                  var outlook = window.external.OutlookApplication;
                  FolderView.Initialize(outlook);
              }
          &lt;/script&gt;
          &lt;object classid='clsid:C718A848-6C31-4897-8DA8-0EDE3A4C6F14'
              id='FolderView' VIEWASTEXT width='100%' height='100%' /&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>HTML code is inserted in HTMLDocument property of the active explorer during
  FolderSwitch event.</p>
  
  <p>In control's OnLoad event, a reference to application instance is used
  (which was passed as a parameter to its Initialize method), but sometimes
  control is not initialized before OnLoad event is fired. It is just created,
  but Initialize method is never invoked.</p>
  
  <p>Does somebody has similar experiences? Is this usual behavior?</p>