0

Hi everyone! i have a question if someone know how can i check with a VB application if another programs window is minimized or maximized?
example i would make a simple VB app that could while running check with a timer if "MS Paint" for example was maximized and check for changes to when ever it got minimzes to the taskbar.

is this possible? i tryied to find answer many places on the net but still nothing that does this.

thank you for any help on this!

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by MAnders09
0

The only way I know of to do this is calling the Win32 API manually. First you get the process ID by iterating through the running processes, compare the process EXE file name until you find the one you want, then get the hWnd and send it a message asking for it's state.

Here's a link that might help with iterating through the running processes:
http://support.microsoft.com/kb/187913
As you can see (assuming you look at the link) this is not for the faint of heart. I recommend you get a book if you really want to get into doing things with the Windows API.

0

Hi there! dident check back untill now and soo thanks for the tip there, i know some of this, the part how to get recive the windows iterating thruegh the windows, just part what to do ones i have that since i know the name of it aswell the window tittle i mean.

ok will see if i can try figure it out.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.