Detecting the .ActiveWindow() w/C#

  • Thread starter Thread starter Vic
  • Start date Start date
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
 
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
 
Back
Top