Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / October 2005

Tip: Looking for answers? Try searching our database.

Communicating with Property Pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RobL - 30 Sep 2005 10:36 GMT
Hi Team,

I'm very close to issuing my Outlook toolbar and I'm really grateful to all
who have posted answers to my questions.

I have an ActiveX control which is being used as a Tools > Options tab in
Outlook.  It's in a separate project within the project group (because I
can't set an ActiveX control as public in the project type I'm using) which
is working ok, other than in Debug mode :(

My question is:  How can I let the ActiveX control know simple things from
the main project such as App.Version etc.  -OR- how can I have the property
page as part of the main project and not a separate OCX?

Hope this makes some sense.

Ta,

Rob
Signature

Software Support Engineer
i2 Ltd.

Ken Slovak - [MVP - Outlook] - 03 Oct 2005 16:19 GMT
See http://support.microsoft.com/?kbid=294434

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi Team,
>
[quoted text clipped - 18 lines]
>
> Rob
RobL - 04 Oct 2005 13:36 GMT
Hi Ken,

thanks for the advice.

I'm now up and running.  One more follow-up question is:

When, in the Property Page, I have the line:

Set myObj = Application.COMAddIns.Item("MyOfficeAddin.Connect").Object

as per the Microsoft KB page you sent me, is there a way I can dim myObj to
give me intellisense access to the public variables in MyOfficeAddIn.Connect?
Ken Slovak - [MVP - Outlook] - 04 Oct 2005 14:30 GMT
No, you can't early bind to get intellisense on that.

What I usually do myself is set up public properties and methods in the
designer that end up exposed to the property page. Then if a configuration
in the property page is changed I can call the method in the addin to update
things. I can read and set the public properties as needed to get/send
information with the addin.

BTW, if you need reference to the Outlook.Application object in your
property page code make sure to declare it this way to get a copy of the
trusted object from your addin:

Implements Outlook.PropertyPage
Dim objSite As Outlook.PropertyPageSite

' In the UserControl_InitProperties procedure:

 Set objSite = Parent
 Set golApp = objSite.Application 'golApp is global Outlook object for PP

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi Ken,
>
[quoted text clipped - 10 lines]
> give me intellisense access to the public variables in
> MyOfficeAddIn.Connect?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.