ADX 2007 VSTO, ADX Outlook Form events do not fire when visible=false

Add-in Express™ Support Service
That's what is more important than anything else

ADX 2007 VSTO, ADX Outlook Form events do not fire when visible=false
 
Son Nguyen




Posts: 55
Joined: 2007-03-28
I trap the ADXSelectionChange() event and based on contents of the email message I choose to show or not to show my ADX Outlook Form.

So I set Me.Visible = False, but then the ADXSelectionChange event never fires again for me to set visible back to true when needed.

Is there a way around this?

Thanks,
Son
Posted 04 Apr, 2007 12:42:05 Top
Son Nguyen




Posts: 55
Joined: 2007-03-28
Any ideas?

Thanks.
Posted 05 Apr, 2007 00:06:59 Top
Fedor Shihantsov


Guest


Hi Son,
Sorry for the delay.

We don't call the ADXOlForm.ADXSelectionChange event for unvisivle forms advisedly.
You can use ADXOutlookEvents.ExplorerSelectionChange event.
You need add the ADXOutlookEvents component to your AddinModule for that.

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 05 Apr, 2007 03:14:59 Top
Son Nguyen




Posts: 55
Joined: 2007-03-28
Hi Fedor,

I don't see the ADXOutlookEvents component, all I see is OutlookFolderEvents, OutlookItemEvents and OutlookItemsEvents.... And right I right click in the ADX Module I don't see it there either, just the commandbars, form manager, etc.

I'm using ADX VSTO 3.4 I believe.

Thanks,
Son
Posted 05 Apr, 2007 12:11:38 Top
Fedor Shihantsov


Guest


For ADX VSTO use the ADXModule.ExplorerSelectionChange event.
Posted 05 Apr, 2007 12:17:56 Top
Son Nguyen




Posts: 55
Joined: 2007-03-28
Thanks Fedor... I use this Outlook Form on both the explorer and inspector windows for mail. Two questions...

I can get the instances from FormInstances, but how do I know if the instance is on the Inspector or Explorer?

Thanks again.
Posted 05 Apr, 2007 12:21:45 Top
Fedor Shihantsov


Guest


Use InspestorObj, ExplorerObj properties.

if FormInstances(i).InspestorObj IsNot Nothing then
//Process Inspector Form
endif

if FormInstances(i).ExplorerObj IsNot Nothing then
//Process Explorer Form
endif
Posted 05 Apr, 2007 12:42:11 Top
Son Nguyen




Posts: 55
Joined: 2007-03-28
Thanks again Fedor... One more thing.

I have multiple explorer windows open... When ExplorerSelectionChange fires, it gives me the explorer object that fired that event. how do I get reference to the ADX Outlook form instance that is in that explorer?

Thanks!!
Posted 06 Apr, 2007 01:30:59 Top
Fedor Shihantsov


Guest


Hi Son,

You can use a Explorer window handle to identify your Explorer ADXOlForm.
See following example:
http://www.add-in-express.com/projects/adx-x-ol-3-vb-outlook_window_handle.zip

P.S.
In the next release we will add new ADXOlForm.CurrentOutlookWindowHandle property.
Posted 06 Apr, 2007 04:16:47 Top
Son Nguyen




Posts: 55
Joined: 2007-03-28
Any possibilities of adding a property like "FireEventsWhenNotVisible" to the Outlook Form as well?

Thanks Fedor.
Posted 09 Apr, 2007 13:45:22 Top