views:

37

answers:

2

I am using visual studio 2003 and Windows platform and i want some tool which give me the list of controls name and control type like button,textbox etc.. in the form is there any way to do this by tool or by any code ? thanks in advance.

+2  A: 

There is toolbox in Visual Studio IDE which will give you the details.

rahul
I think OP wants to list the name of controls programatically.
adatapost
i can not find it where exactly is toolbox ?
KuldipMCA
+1  A: 

There is a Controls collection for the Form. You can get the array of controls present in the form from that. In order to get the type, you will need to loop through the collection and get GetType().FullName property for each element.

danish