Button on Custom Form

C

Christie Sorenson

Hello yet again,
I'm having some serious outlook issues this week. Thank
you all for your patience.

I have a button on my custom form. When it is clicked, I
need to call some code in my addin. Right now, I have a
user property that I toggle the value in the custom form
code and capture the CustomPropertyChange event in my
addin. The problem is that I can't use custom form code
anymore because of the "active content" issue. Does
anyone know any other way to get my addin to know when the
button is clicked?

Thank you,
Christie
 
S

Sue Mosher [MVP-Outlook]

The problem is that I can't use custom form code
anymore because of the "active content" issue.

What do you mean?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
C

Christie Sorenson

When my custom form has code in it and I send that
message, the receiver of the message gets the "This item
contains active content that cannot be displayed in the
preview pane" message. Since I have been unable to find a
way around getting that message, I have decided to try to
remove all the code from the custom form...
 
S

Sue Mosher [MVP-Outlook]

If you remove all code from the custom form, that will include any code for
your command button. One alternative would be to create a custom ActiveX
control to place on your form and perform whatever functionality you wanted
from the button. Another would be to use your add-in to place a button in
the toolbar for the item.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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