A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

User Control in FHP Doesn't Initialize



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 10th 08, 10:28 AM posted to microsoft.public.outlook.program_addins
Nenad
external usenet poster
 
Posts: 11
Default 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?
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
webBrowser control, how to detect user is not connected to interne BatKing Outlook - Using Forms 1 November 7th 08 03:17 PM
take control of calender for user that does not exist. SLickest3 Outlook - Calandaring 0 August 5th 08 05:13 PM
User Account Control and Add-in install Slava Barouline Add-ins for Outlook 5 November 3rd 06 05:40 PM
how to control which user is showing up in "Other Calendars" view Morten Rasmussen, MKR Outlook - Calandaring 0 June 14th 06 04:30 PM
programmatically add control for user interaction/feedback Loane Sharp Outlook - General Queries 1 May 24th 06 06:44 PM


All times are GMT +1. The time now is 04:31 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-2025 Outlook Banter.
The comments are property of their posters.