locked
solution explorer project change event RRS feed

  • Question

  • I need to capture when a project is selected on the solution explorer.

    In another words an event that is raised when project is changed or selected
    Monday, November 8, 2010 9:47 PM

Answers

  • Perhaps you could implement IVsSelectionEvents and call AdviseSelectionEvents?

     

    Ryan

    • Marked as answer by Victor_Chen Wednesday, November 17, 2010 2:19 AM
    Tuesday, November 9, 2010 6:12 AM
  • Thanks, I figure it out.

    Now I need to make sure the adding is loaded at runtime.

    • Marked as answer by Victor_Chen Wednesday, November 17, 2010 2:19 AM
    Wednesday, November 10, 2010 8:57 PM
  • Are you asking how to do that (load at runtime) or are you just commenting that you need to do that now? 

    Was the way you came up to use IVsSelectionEvents or some other way? 

    Sharing the answers (and marking others posts that helped as answers) is a good thing to do in general so that people that have the same problem in the future can see how you solved it, and they don't have to ask the same question over and over.

    Ryan

    • Marked as answer by Victor_Chen Wednesday, November 17, 2010 2:19 AM
    Wednesday, November 10, 2010 10:06 PM

All replies

  • Perhaps you could implement IVsSelectionEvents and call AdviseSelectionEvents?

     

    Ryan

    • Marked as answer by Victor_Chen Wednesday, November 17, 2010 2:19 AM
    Tuesday, November 9, 2010 6:12 AM
  • Thanks, I figure it out.

    Now I need to make sure the adding is loaded at runtime.

    • Marked as answer by Victor_Chen Wednesday, November 17, 2010 2:19 AM
    Wednesday, November 10, 2010 8:57 PM
  • Are you asking how to do that (load at runtime) or are you just commenting that you need to do that now? 

    Was the way you came up to use IVsSelectionEvents or some other way? 

    Sharing the answers (and marking others posts that helped as answers) is a good thing to do in general so that people that have the same problem in the future can see how you solved it, and they don't have to ask the same question over and over.

    Ryan

    • Marked as answer by Victor_Chen Wednesday, November 17, 2010 2:19 AM
    Wednesday, November 10, 2010 10:06 PM