Windows Form Spy

A simple Windows forms properties spy
Download

Windows Form Spy Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Rama Krishna Vavilala
  • Publisher web site:
  • http://www.codeproject.com/Members/Rama-Krishna-Vavilala
  • Operating Systems:
  • Windows All
  • File Size:
  • 48 KB

Windows Form Spy Tags


Windows Form Spy Description

The WFSpy application was developed to be a small utility that can be used to spy the properties of any Windows forms control in the system. WFSpy is a tool that helps you to view properties of any window form control in the system. I originally needed a small utility that will give me the managed control type name and the assembly name from a window handle, but gradually the tool became sophisticated enough to show all properties of a managed control (and optionally modify them). The only feature currently missing is the spying of events, which I plan to add later on.WFSpy uses Windows hooks to do its job. There are 3 assemblies in the project:-wfspy - a C# executable. This is the main application which has the UI code. wfspylib - a C# class library that contains utility functions and controls. This library gets injected into the process where the window belongs. wfspyhook - a managed C++ class library (.dll) which has code to inject a managed assembly into a process.The tool itself is pretty simple. The main window shows all the managed windows and their hierarchy, with the desktop window as the root. Any unmanaged window which is not parent of a managed window directly or indirectly, is not shown in the tree. The managed windows are shown using a slightly different icon. You can view the properties of the managed window by clicking on the details button in the main form. This brings up the dialog box with the property grid as shown in the second screen shot. The properties can even be modified in the grid. The next few sections discuss some important aspects of the implementation.


Windows Form Spy Related Software