I know I can find the Handle for any windows application using the FindWindow API. What I don't know how to do is find the handle for a specific control in any running Windows application. I have written a simple VB program that gives me all the handles for the controls within an app in a list box. I can select an handle and see the child controls the list box. This usually works but is very tediuos.

I have a friend who uses Delphi which came with a program called WinSight and he can see the handle of a controll by looking at the Messeages in WinSight when he clicks on it. I am wondering if there is some way using VB to capture the handle of a contol when it is clicked.