Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

how can i capture file open event in VSPackage?

$
0
0

I tried this:

dte = (DTE)GetGlobalService(typeof(DTE));

dte.Events.DocumentEvents.DocumentOpening += DocumentEvents_DocumentOpening;

in Initialize() method of VSPackage.

But it doesn't work when a document is opened.  My EventHandler not execute.

Other events like CommandEvents/SolutionEvents also not work.

Is something wrong in my code ? 

thanks.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>