I wan it not only for my form, i wan it for any window which is currently active.
but the below mentioned statements can get the controls number only for the form.

EnumerateControls(controls, Me)

Me.ListBox1.Items.AddRange(controls.ToArray())
Me.ListBox1.DisplayMember = "Name"

Please help me out to get it for all the active windows.

Thanks in advance.