To start the Control Spy, create and display a new instance of the RadControlSpyForm contained in the Control Spy library:
Copy[C#] Using RadControlSpy
private void radButton1_Click(object sender, EventArgs e)
{
RadControlSpyForm spyForm = new RadControlSpyForm();
spyForm.Show();
}
Copy[VB.NET] Using RadControlSpy
Private Sub RadButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
Dim spyForm As New RadControlSpyForm()
spyForm.Show()
End Sub