Appointment Item in To-Do Bar and Explorer.SelectionChange event in Outlook 2010

Answered Appointment Item in To-Do Bar and Explorer.SelectionChange event in Outlook 2010

  • 2012年4月12日 上午 10:16
     
     

    Hi,

    I am facing problem related to Explorer.SelectionChange event in Outlook 2010.
    Using explorer's selection change,we are using selected item in our Outlook Addin.

    To-Do Bar has following sections,

    a.Date Navigator
    b.Task List
    Our Addin works fine for these sections.

    b.Appointments
      1. Click on any appointment item, explorer's selection change event get fired.
      2. But after this,if you try to click anywhere inside the any other addin, SelectionChange event of Explorer fires.
         Which is not expected behaviur of Selection Change.

         Outlook takes this click as a Explorer's ViewList selection which is very weird.


    Please advise how to solve this issue or how to set the correct state of outlook after click of Appointment item in To-Do Bar.
    So that Explorer's selection change event does not happen after click inside the addin. 


    -- Happiness is only real when shared :)

所有回覆

  • 2012年4月12日 下午 01:20
     
     
    Please explain what you mean by "click inside addin". Where are you clicking?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Vipul Arwade" <=?utf-8?B?VmlwdWwgQXJ3YWRl?=> wrote in message news:211c16ac-e0c7-4c91-8e77-55231f899a3e...

    Hi,

    I am facing problem related to Explorer.SelectionChange event in Outlook 2010.
    Using explorer's selection change,we are using selected item in our Outlook Addin.

    To-Do Bar has following sections,

    a.Date Navigator
    b.Task List
    Our Addin works fine for these sections.

    b.Appointments
      1. Click on any appointment item, explorer's selection change event get fired.
      2. But after this,if you try to click anywhere inside the any other addin, SelectionChange event of Explorer fires.
         Which is not expected behaviur of Selection Change.

         Outlook takes this click as a Explorer's ViewList selection which is very weird.


    Please advise how to solve this issue or how to set the correct state of outlook after click of Appointment item in To-Do Bar.
    So that Explorer's selection change event does not happen after click inside the addin. 


    -- Happiness is only real when shared :)


    Ken Slovak MVP - Outlook
  • 2012年4月12日 下午 06:36
     
     

    "Click inside addin" means -

    We are using selected outlook item of explorer in our VSTO AddIn.
    To get selected outlook item,we are using Explorer's Selection_Change event.

    Selection_Change event fires after click on Explorers different views like olViewList,olToDoBarAppointmentList.
    But in following case,Selection_Change event behaves very different.

    (Outlook environment- Outlook has To-Do bar,Our Outlook AddIn)

    1.Select Appointment Item inside the To-Do Bar.
      Now Selection_Change event fires which is expected.
    2.Now select inside the custom Outlook AddIn\Any installed AddIn for inputing\selecting any data\control.
      Explorer's Selection Change event fires.
      This is not expected because I am not selecting\clicking on any view of explorer but  still Selection chnages event fires.

    This happens only after selecting "Appointment Item" inside the To-Do Bar not for  task items inside the To-Do Bar.
    We need to avoid this extra Selection_Change event.

    Is this a bug in To-Do bar?
    Please advise.


    -- Happiness is only real when shared :)

  • 2012年4月12日 下午 09:09
     
     已答覆
    I'm not sure if that's by design or is a bug, but it makes sense in a way. An appointment is always an appointment in some Calendar folder. A task in the ToDo bar can be an email or other item that was flagged and had various task properties added to it.
     
    You can file a support incident to report this as a bug if you want. If it really is one you won't be charged for the incident. I'd almost expect that it would be declared "by design" though.  

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Vipul Arwade" <=?utf-8?B?VmlwdWwgQXJ3YWRl?=> wrote in message news:ae1cbfd1-c874-43ed-bc5f-68b2b85608e1...

    "Click inside addin" means -

    We are using selected outlook item of explorer in our VSTO AddIn.
    To get selected outlook item,we are using Explorer's Selection_Change event.

    Selection_Change event fires after click on Explorers different views like olViewList,olToDoBarAppointmentList.
    But in following case,Selection_Change event behaves very different.

    (Outlook environment- Outlook has To-Do bar,Our Outlook AddIn)

    1.Select Appointment Item inside the To-Do Bar.
      Now Selection_Change event fires which is expected.
    2.Now select inside the custom Outlook AddIn\Any installed AddIn for inputing\selecting any data\control.
      Explorer's Selection Change event fires.
      This is not expected because I am not selecting\clicking on any view of explorer but  still Selection chnages event fires.

    This happens only after selecting "Appointment Item" inside the To-Do Bar not for  task items inside the To-Do Bar.
    We need to avoid this extra Selection_Change event.

    Is this a bug in To-Do bar?
    Please advise.


    -- Happiness is only real when shared :)


    Ken Slovak MVP - Outlook
  • 2012年4月13日 下午 12:43
     
     
    thanks Ken :)

    -- Happiness is only real when shared :)