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):