I think I starting to finally understand the rules here. Is it true that
I
can only create a Click event for a control in VBScript using the Script
Editor and not from from my Add-ins code? I believe this is true becasue
when I imported the type library for FM20.DLL I don't see any support for
exporting this event.
If so that's fine I just don't know VBScript very well. Maybe you can
give
me some hint as to where to look for a way to send an http request.
message See the entry for "Accessing Controls Through the Controls Collection
Example" in the Control Reference/Examples section of the OLFM10.chm
help
file. This will show you how to retrieve a control from a collection.
Each
page has its own collection of controls.
The Pages collection is actually retrieved through the Outlook VBA
Inspector
object (via the ModifiedFormPages property), which is in the VBA help
file.
Also, if you need to wire up the Click event for a button on your
custom
form, just declare the event like this:
Sub Command1_Click()
'Your code
End Sub
There's also a lot of helpful tips here:
Microsoft Outlook Forms:
http://www.outlookcode.com/d/forms.htm
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
:
Thanks for the tip. I found the suggested file but still not what I'm
looking for. For some reason all of the documentation I've found so
far
leaves out any mention of the controls property of the page object. I
know
the property exists cause I can see it in the type library and also
its
mentioned in the docuemtation for the CustomPropertyChange event.
As far as I can see the controls property is the only way of
programatically
referencing a specific control on a form, as such it seems pretty
important
and deserves some mention somewhere. Or is there some other way of
referencing a specific control. Specifically I'm trying to assign an
event
handler to the onClick of a command button from my add-ins code. I
realize
this isn't a vba issue exactly but I couldn't figure out where else to
ask.
in
message Try the OLFM10.CHM file; it should be in the Program Files\Microsoft
Office\Office10[11]\1033 directory.
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
:
The documentation for the Outlook Object Model doesn't seem to
cover
parts
of the Forms Object Model. Specifically, I'm looking of docs on the
Page
object (from the Pages Collection Object). I've found reference to
bits
of
it in some of the example code (like in the docs for the
CustomPropertyChange event).
Somewhere I found instructions to go look in the FM20.CHM help file
which
I
was able to track down but this doesn't seem to be correct either
since
it
doesn't even mention the Page.Controls property.
Thanks
AB