Obtain Outside Application Window Z-Level, Foremost, Etc.

PJ973

New member
Joined
Oct 26, 2015
Messages
1
Programming Experience
1-3
Hello Everyone,
Was hoping someone might know of a way to find out the order of the windows that are visible on the screen. Not quite sure how to explain this exactly but say you have three windows open (outside applications) and want to know the order they appear top to bottom. Hope someone understands can't find help anywhere and I'm at my wits end trying to think of new searches. Thanks!
Pat
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,319
Location
Sydney, Australia
Programming Experience
10+
There is no managed way to do that. You'd have to use the Windows API. I don't know the appropriate function to use off the top of my head but, if I wanted to find out, I'd search the web with therms like "windows api z order" and I might also check out pinvoke.net, which lists loads of Windows API functions and how to use them.
 
Top Bottom