i need to interface with another app. i'll take an answer to either question.

simple:

when my program loses focus to another program i need to get that program's handle.



advanced:

when the user sets the focus on another program, my program needs to ask the user if it wants my program to interface with the program that just got the focus. if the user says yes, then i need to get the text off of its textbox and put it on my form.



thanks for any help i get.