Accessing controls on Compose Page from Read Page

Y

Yoav Ben-Yosef

Hello,

I have a form containing an Image control on its compose page. The
user selects a picture, loading it to the image control and sends the
form. The read page also contains an image control that have to show
the same picture when the receiving user opens the form. Any ideas on
how tod do that?

TIA
 
S

Sue Mosher [MVP-Outlook]

You need to include code in the Item_Open event handler to associate the
picture with the control; see http://www.outlookcode.com/d/formpicture.htm.
In the situation you describe, that's not possible, because the picture is
embedded in the item, not included as an attachment. You could combine the
layouts instead of having separate read and compose layouts or you could
include the picture as an attachment that can be manipulated
programmatically.
 
H

Hollis D. Paul

Yoav said:
I have a form containing an Image control on its compose page. The
user selects a picture, loading it to the image control and sends the
form. The read page also contains an image control that have to show
the same picture when the receiving user opens the form. Any ideas on
how tod do that?
You have been bitten by the stupidity of having the forms split by
default when you open a form in design mode. The first thing you
should do is combine the two forms (that is, un-check the button on the
forms menu that splits the form), drop all the controls you want to see
in both compose and read forms, and then split the form. When you do
it that way, the image control appears on both compose and read forms.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2600
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 
Y

Yoav Ben-Yosef

Hello,

I have a form containing an Image control on its compose page. The
user selects a picture, loading it to the image control and sends the
form. The read page also contains an image control that have to show
the same picture when the receiving user opens the form. Any ideas on
how tod do that?

TIA

Thanks to all who answered. Because the compose and read pages are
very different, I'll use Sue's solution.

Thanks again
 

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