Detecting the .ActiveWindow() w/C#

V

Vic

Hi All,

Can't seem to figure out how to detect the active window within an
Outlook (2003) session.

I can see that the method appOutlook.ActiveWindow() is available but
I can't figure out how to cast the type to an Explorer or an
Inspector.

I basically have a CommandBar button that should only fire when 1
mailitem is selected and should ignore if multiple or none is selected
in a Explorer listview.

Any thoughts?

Using: VS.Net 2005 VSTO SE, C#, Outlook 2003, developed as a shared
add-in.

Thanks,
Vic
 
B

Brian Tillman

Vic said:
Can't seem to figure out how to detect the active window within an
Outlook (2003) session.

Asking in one of the programming groups may get you a quicker response.
microsoft.public.outlook.program_addins
microsoft.public.outlook.program_forms
microsoft.public.outlook.program_vba
 

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