Where are docs for Forms Object Model

  • Thread starter Thread starter Al Berg
  • Start date Start date
A

Al Berg

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
 
Try the OLFM10.CHM file; it should be in the Program Files\Microsoft
Office\Office10[11]\1033 directory.
 
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.


Eric Legault said:
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/


Al Berg said:
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
 
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/


Al Berg said:
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.


Eric Legault said:
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/


Al Berg said:
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
 
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.



Eric Legault said:
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/


Al Berg said:
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.


Eric Legault said:
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
 
Now I'm thoroughly confused. How are you mixing custom forms with a COM
Add-In? Or is this a VBA Project with User Forms?

And how in the world does HTTP requests come into play with your solution?
Maybe give me an overview of your current solution's architecture and what
you are trying to accomplish.

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/


Al Berg said:
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.



Eric Legault said:
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/


Al Berg said:
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.


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
 
My project involves interfacing Outlook with a Web Service that provides
e-conferencing services. My COM Add-in puts buttons on various explorer and
inspector tool bars that do do vaiious things one of which is to take me to
a custom page on the "request meeting" form. One of the things on this
custom page is a command button that when pressed submits a Web Services
reqest to the webservices server. This request is basically an http message.
I would have liked to write the code for what happens when the command
button is pressed in my COM Add-in code but I can see now that this is not
possible.

I'm very new to Outlook programming but I've been a programmer since the
dawn of time and in all these years, if I've learned one thing is that cats
a skinned in many ways so if I'm completely missing the best way to do this
please let me know.

Regards
AB

Eric Legault said:
Now I'm thoroughly confused. How are you mixing custom forms with a COM
Add-In? Or is this a VBA Project with User Forms?

And how in the world does HTTP requests come into play with your solution?
Maybe give me an overview of your current solution's architecture and what
you are trying to accomplish.

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/


Al Berg said:
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.



Eric Legault said:
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
 
There's nothing stopping you from writing your own .dll that you can
instantiate in the code behind your form, and then call it from a button
click. You could also move the code to your Add-In and fire it from one of
your custom toolbar buttons.

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/


Al Berg said:
My project involves interfacing Outlook with a Web Service that provides
e-conferencing services. My COM Add-in puts buttons on various explorer and
inspector tool bars that do do vaiious things one of which is to take me to
a custom page on the "request meeting" form. One of the things on this
custom page is a command button that when pressed submits a Web Services
reqest to the webservices server. This request is basically an http message.
I would have liked to write the code for what happens when the command
button is pressed in my COM Add-in code but I can see now that this is not
possible.

I'm very new to Outlook programming but I've been a programmer since the
dawn of time and in all these years, if I've learned one thing is that cats
a skinned in many ways so if I'm completely missing the best way to do this
please let me know.

Regards
AB

Eric Legault said:
Now I'm thoroughly confused. How are you mixing custom forms with a COM
Add-In? Or is this a VBA Project with User Forms?

And how in the world does HTTP requests come into play with your solution?
Maybe give me an overview of your current solution's architecture and what
you are trying to accomplish.

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/


Al Berg said:
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
 
Back
Top