Edit Read Page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm trying to do something really simple and was wondering if it's possible
on the edit read page. I have some code that basically initiates once the
read page is opened up on the recipient end.
I have a textbox and a commandbutton. I'm trying to set the textbox to
(enabled=false), so that it dims when I click the commandbutton. This
doesn't seem to work on the Edit Read Page for some reason. Is it possible
to do this on the read page? Thanks.
 
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.
 
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.
 
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.

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