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

VSPackage Foreground Event?

$
0
0

I need to determine when the IDE becomes the foreground process from a VSPackage. Right now I have a timer set up that calls into the user32.dll's GetForegroundWindow function after acquiring the main window handle via hwnd = System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle.

Is there an event driven way to do this?

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>