Spy++ displays Windows Class, not object from .NET. When you start drag, it detects what window is under cursor and query system for that window details. You need to check Win32 API for more information, look at GetWindowInfo(), RegisterClass(), ChildWindowFromPoint(), RealChildFromPoint().
spy++
Ceyhun PAK
In the April 2006 edition of MSDN Magazine there is an article covering writing a Managed (.NET) version, check it out:
Deliver The Power Of Spy++ To Windows Forms With Our New Tool
ylmz
Hi!
Spy++ displays Windows Class, not object from .NET. When you start drag, it detects what window is under cursor and query system for that window details. You need to check Win32 API for more information, look at GetWindowInfo(), RegisterClass(), ChildWindowFromPoint(), RealChildFromPoint().