开发者

Tool for examining the structure of a windows forms application

does anybody know a tool for examining the structure of a windows forms application? I want to get information about every contr开发者_高级运维ol on the form like buttons, labels etc. I tried Spy++ but it tells me only some information about the window structure, but nothing about the internal controls.

Thanks! Mark


Have you tried Document Outline in Visual Studio?

You can use the outline to do the following in Windows Forms applications in Visual Studio:

  • View the logical structure of a Form or a UserControl.

  • Put user input focus on deeply nested controls that may be hard to select on the Form or UserControl itself.

  • Move controls from one parent to another parent.

  • See controls that may be visually hidden by other controls.


Try using the AutoIt Window Info tool, it is similar to Spy++, but it may offer some additional data.

http://www.autoitscript.com/autoit3/docs/intro/au3spy.htm


This question seems to be asking the same thing and actually has a couple of good answers:

Is there a WinForm control inspector application?


You might want to look into Active Accessibility. Assuming that the application just uses standard controls (or is accessibility enabled), MSAA will allow you to interact with the controls as a tree.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜