Article relates to
RadControls for WinForms
Angel Kanchev, Telerik
January 24, 2007
Last modified by
HOW-TO Open the Rad Control Spy for a particular control or element by using code SOLUTION
The spy form offers the needed API for setting a control or element to spy.
To set a control you can use the SetControlToSpy() method. Here is a sample code using an instance of RadToolStrip (RadToolStrip1):
The code above will open the ToolStrip with the whole tree expanded.
You can make the control spy to open a particular element if you wish. For this purpose you can use code similar to the following (myElement is the RadElement you wish to spy):
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.