views:

201

answers:

5

I want to point with the mouse on an area in my application and know the name of the UserControl.

A: 

Spy++ allow you to see Window settings and messages, but that works at native (Win32) level, and will not show .NET information.

Richard
+1  A: 

I havn't tried it, but there is a tool called ManagedSpy (Article) that might be helpful.

Mikael Sundberg
+4  A: 

I recommend WinSpy++ because its much easier to get hold of then the original Spy++ which comes as part of the Windows SDK.

Just like Spy++ this only works at the Win32 level, of which WinForms is a thin/medium wrapper.

Schneider
+3  A: 

Hawkeye can do that and more. You can see all the properties, fields, events and methods of a control. You can also edit the properties during runtime.

John
+1 Great utility. Very powerful. wfSpy is a little easier to use though (see my answer).
cplotts
A: 

My favorite (for ease of use) is our modified wfSpy utility.

It is available at my blog: http://www.cplotts.com/2009/10/28/an-ode-to-wfspy/

The original utility is from CodeProject ... but that version doesn't have the ability to drag the mouse on top of a control in your application.

Hawkeye (already mentioned above) is a favorite of mine as well ... more powerful than wfSpy ... but definitely harder to use. wfSpy is great for quick and simple spying (and of course editing of properties on the fly).

cplotts