PC Review


Reply
Thread Tools Rate Thread

Communicating with Property Pages

 
 
=?Utf-8?B?Um9iTA==?=
Guest
Posts: n/a
 
      30th Sep 2005
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
--
Software Support Engineer
i2 Ltd.
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      3rd Oct 2005
See http://support.microsoft.com/?kbid=294434

--
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


"RobL" <(E-Mail Removed)> wrote in message
news:A3B0FDCC-A1C2-46BB-9E61-(E-Mail Removed)...
> 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
> --
> Software Support Engineer
> i2 Ltd.


 
Reply With Quote
 
=?Utf-8?B?Um9iTA==?=
Guest
Posts: n/a
 
      4th Oct 2005
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?
 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      4th Oct 2005
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


--
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


"RobL" <(E-Mail Removed)> wrote in message
news:98596560-071E-49E9-BD70-(E-Mail Removed)...
> 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?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LinkMasterFields Property error:communicating with the OLE server or ActiveX Control eranil84 Microsoft Access 0 1st Apr 2009 06:27 AM
Property sheet and property pages in winforms Thomas Microsoft Dot NET Framework Forms 1 29th Jan 2007 12:58 PM
Property sheet and property pages in winforms Thomas Microsoft C# .NET 0 29th Jan 2007 11:01 AM
Communicating property changes David Veeneman Microsoft C# .NET 1 13th Feb 2006 02:41 AM
Dynamically created page communicating with other pages Stephen Adam Microsoft ASP .NET 0 15th Feb 2005 09:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.