Connecting Outlook View Control

P

PeterQ

Hello Team !

I have this question:
I am developing in VBA - Outlook 2003. I have added to my project the
Microsoft Outlook View Control.

Now I want to connect an Explorer object to this control in order to be
able to add code to the events in the Explorer object.

Does anyone know how to do this ?

I would be very grateful.

Regards,
Peter


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
E

Eric Legault [MVP - Outlook]

You can only bind Folders to the View Control. Automating the Explorer
object is usually geared towards working with CommandBars, selected messages,
showing folders, working with the current view, etc.

Also, the View Control only exposes events related to selecting messages or
changing views. See this page for more info:

Using the Microsoft Outlook View Control:
http://www.outlookcode.com/d/ovc.htm

What is it exactly that you are trying to do?
 
P

PeterQ

hello Eric,

Thanks for replying.
I want to add some control (data-manipulation and determining which
outlook-form to be shown)when a user doubleclicks to answer to a
message.

regards,
Peter


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
E

Eric Legault [MVP - Outlook]

If you need to "intercept" the double-click, that is do something like load a
custom fom before the double-clicked message is displayed, you would not be
able to do that.

It might be possible if you used Inspector wrappers (see Slovak Technical
Services Code Samples:
http://www.slovaktech.com/code_samples.htm#InspectorWrapper). You would
need to monitor the SelectionChange event to reconstruct your Inspectors
collection every time it fires, and trap the opening of the form to implement
your custom process.

Otherwise, instead of relying on the Explorer object or the View Control,
populate a ListBox control with the list of messages and have the user choose
from that. Then you can have full control when they double-click.
 

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