Is there a WinForm control inspector application?

后端 未结 3 548
野的像风
野的像风 2020-12-28 13:37

I\'m looking for something that provides interactive meta-data about a running .NET WinForms application.

Basically, I\'d like to be able to hover over a running Win

相关标签:
3条回答
  • 2020-12-28 13:49

    I believe you're looking for Hawkeye. You may also look at GitHub for a more recent version.

    0 讨论(0)
  • 2020-12-28 13:57

    WinForms Spy is a good one. The codeproject version doesn't have a draggable cross hairs but there is a version out there that added it.

    0 讨论(0)
  • 2020-12-28 14:08

    Try the nuget package: WinForm.Inspector.Tool

    Setup documentation

    • Instantiate the Inspector in your project.

      Inspector inspector = new Inspector();

    • Ignore specific controls ex. buttons.

      inspector.IgnoreTypes = new Type[] { typeof(Button) };

    • Skip controls ex. invisible and disabled.

      inspector.SkipChilds = GetChildAtPointSkip.Invisible | GetChildAtPointSkip.Disabled;

    Run your project and press Ctrl + F8 to open the ControlViewer.

    Hold down "Alt" and move your mouse over the controllers to select them.

    0 讨论(0)
提交回复
热议问题