Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Security exception while opening custom outlook form (http://www.outlookbanter.com/outlook-using-forms/89833-security-exception-while-opening-custom.html)

[email protected] May 2nd 09 04:33 PM

Security exception while opening custom outlook form
 
While opening custom outlook form(appointment form), the following
message is thrown and the msflxgrd.ocx used to display grid is not
shown up.
Exception message :"To help prevent malicious code from running, one
or more objects in this form were not loaded. For more information,
contact your administrator."

The code used in form is as below:

Function Item_Open()
Set Page = GetInspector.ModifiedFormPages("Event Details")

Page.Controls("dtAnnouncement").height=17
Page.Controls("dtAnnouncement").width=105
Page.Controls("dtAnnouncement").value = Date()

Page.Controls("msfgArtist").height=99
Page.Controls("msfgArtist").width=463

Page.Controls("msfgPromotion").height=99
Page.Controls("msfgPromotion").width=463

End Function

Can anyone pls throw some light on this?

Sue Mosher [MVP][_3_] May 3rd 09 08:19 PM

Security exception while opening custom outlook form
 
Please see your earlier thread on this topic.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


wrote in message
...
While opening custom outlook form(appointment form), the following
message is thrown and the msflxgrd.ocx used to display grid is not
shown up.
Exception message :"To help prevent malicious code from running, one
or more objects in this form were not loaded. For more information,
contact your administrator."

The code used in form is as below:

Function Item_Open()
Set Page = GetInspector.ModifiedFormPages("Event Details")

Page.Controls("dtAnnouncement").height=17
Page.Controls("dtAnnouncement").width=105
Page.Controls("dtAnnouncement").value = Date()

Page.Controls("msfgArtist").height=99
Page.Controls("msfgArtist").width=463

Page.Controls("msfgPromotion").height=99
Page.Controls("msfgPromotion").width=463

End Function

Can anyone pls throw some light on this?





All times are GMT +1. The time now is 12:49 PM.

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