Edit Read Page

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.
 
S

Sue Mosher [MVP-Outlook]

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.
 
G

Guest

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.
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top