Get component (System.Type) from screen coordinates...?

  • Thread starter Thread starter Yasutaka Ito
  • Start date Start date
Y

Yasutaka Ito

Hi,

Is there something like "GetTypeFromPoint" (hypothetical) in .NET Framework?
What I want to do is to get the type (System.Type) of a component on another
application's windows, from the mouse coordinates. Want to do something like
Spy++ for .NET applications... :)

Look forward to hearing from you folks.

thanks!
-Yasutaka
 
Well, you must use the GetWindowFromPoint win32 api and get a handle to a window. Then use the Control.FromHandle() or Form.FromHandle() to try and convert the window to a .net control or a form....

iulian
 
Back
Top