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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -