Re: customPropertyChange issue



I'm confused. You've posted in a VBA forum, but this looks like custom form code. Code runs only on published forms. You would need to publish this form to the Organizational Forms library or to each user's Personal Forms library -- and the code would need to include an Item_Open event handler to make the desired UI changes when the recipient displays it.

FYI, there is a newsgroup specifically for Outlook forms issues "down the hall" at microsoft.public.outlook.program_forms or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_forms


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"prog" <prog@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:A13D060B-C62C-4AB8-8227-BF14D6FF2117@xxxxxxxxxxxxxxxx
When I send a form I have some frames show up that in my code had disabledor
hidden. My code is below. Basically there are some frames listed below that
I have set to hidden and they all show up when the user sends the form to
recipient. Not sure what I'm doing wrong in my code. Based on the code
below only Frame3 should be seen by the recipient.

Select case.....

Case "field1"
strMyProp2 = Item.UserProperties("field1")
If strMyProp2 = True Then
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("P.2")
Set frmCheckData = myPage1.Controls("Frame3")
Set chkNeedCheck = myPage1.Controls("CheckBox34")
frmCheckData.Visible = true

Set frmCheckData2 = myPage1.Controls("Frame4")
Set frmCheckData3 = myPage1.Controls("Frame5")
frmCheckData2.visible = false
frmCheckData3.visible = false
Set chkNeedCheck2 = myPage1.Controls("CheckBox35")
Set chkNeedCheck3 = myPage1.Controls("CheckBox36")
chkNeedCheck2.enabled = false
chkNeedCheck3.enabled = false
else
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("P.2")
Set frmCheckData = myPage1.Controls("Frame3")
Set chkNeedCheck = myPage1.Controls("CheckBox34")
frmCheckData.Visible = false
end if

.



Relevant Pages

  • Re: outlook 2003 forms issue
    ... Does the recipient have access to the published form definition? ... Author of Configuring Microsoft Outlook 2003 ... Set frmCheckData = myPage1.Controls ... Set chkNeedCheck = myPage1.Controls ...
    (microsoft.public.outlook.program_forms)
  • Re: outlook 2003 forms issue
    ... Author of Configuring Microsoft Outlook 2003 ... Set myPage1 = myInspector.ModifiedFormPages ... Set frmCheckData = myPage1.Controls ... Set chkNeedCheck = myPage1.Controls ...
    (microsoft.public.outlook.program_forms)
  • Re: outlook 2003 forms issue
    ... Author of Configuring Microsoft Outlook 2003 ... Set myPage1 = myInspector.ModifiedFormPages ... Set frmCheckData = myPage1.Controls ... Set chkNeedCheck = myPage1.Controls ...
    (microsoft.public.outlook.program_forms)
  • Re: Setting or adding data to a form field
    ... Author of Configuring Microsoft Outlook 2003 ... Administrators, Power Users, and Developers ...
    (microsoft.public.outlook.program_forms)
  • Re: making frames dissapear using checkboxes
    ... Sub Item_Open_CustomPropertyChange ... Set frame4 = myPage1.Controls ... Author of Configuring Microsoft Outlook 2003 ... Administrators, Power Users, and Developers ...
    (microsoft.public.outlook.program_forms)