![]() |
User Control in FHP Doesn't Initialize
I am programming Outlook 2003 using Visual Studio 2008.
Add-in uses embedded user control in folder's home page, exactly as it was recommended. Here is HTML code that is using: htmlheadstyle type="text/css"body{overflow: hidden}/style/head body rightmargin = '0' leftmargin ='0' topmargin ='0' bottommargin = '0' onload='OnBodyLoad()' script function OnBodyLoad() { var outlook = window.external.OutlookApplication; FolderView.Initialize(outlook); } /script object classid='clsid:C718A848-6C31-4897-8DA8-0EDE3A4C6F14' id='FolderView' VIEWASTEXT width='100%' height='100%' / /body /html I am inserting HTML code in HTMLDocument property of the active explorer in its FolderSwitch event. In OnLoad event of the control, a reference to application instance is used (which was passed as a parameter in its Initialize method), but sometimes control is not initialized before OnLoad event is fired. It is just created, but Initialize method is never invoked. Does somebody has similar experiences? Is this usual behavior? |
All times are GMT +1. The time now is 06:20 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com