You would need to publish the form on the Exchange server's Organizational Forms library, with the "send form definition with item" box on the form's (Properties) page unchecked. Otherwise, code will not run on received items.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
Ok. I have it published and the box seems to be working correctly. Now I ran
into another problem. I have a button next to that text box that locks the
textbox and that works fine, until they save the form and open it again, then
the box looses its "locked" status or (enabled=false). Any ideas on what I
could possibly do to fix this? Any help is appreciated.
> You would need to publish the form on the Exchange server's Organizational Forms library, with the "send form definition with item" box on the form's (Properties) page unchecked. Otherwise, code will not run on received items.
>
[quoted text clipped - 7 lines]
> > doesn't seem to work on the Edit Read Page for some reason. Is it possible
> > to do this on the read page? Thanks.
Sue Mosher [MVP-Outlook] - 31 Oct 2007 15:25 GMT
Any changes you make to the UI at run time are discarded when the item is closed. You would need to make those same UI changes when the user opens the item again. Use a custom property to store information about the control's state, then use the Item_Open event handler to read that property value and make the necessary UI change.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
> Ok. I have it published and the box seems to be working correctly. Now I ran
> into another problem. I have a button next to that text box that locks the
[quoted text clipped - 3 lines]
>
>> You would need to publish the form on the Exchange server's Organizational Forms library, with the "send form definition with item" box on the form's (Properties) page unchecked. Otherwise, code will not run on received items.
>> > Hi,
>> >
[quoted text clipped - 5 lines]
>> > doesn't seem to work on the Edit Read Page for some reason. Is it possible
>> > to do this on the read page? Thanks.