vb.net - Get the process name of the window that is currently active and in focus using VB. Net -


i've been looking answer question , have not found it, come see if can help.

is there way process name of window active , in focus using vb. net?

thanks in advance

you'll have use pinvoke. getforegroundwindow window in foreground, getwindowthreadprocessid id of process owns it. rest easy, process.getprocessbyid() find process. visit pinvoke.net website declarations.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -