Enumarating Components for Windows Form?

A

Adam Right

Hi,

Can i enumarate the windows form's components? I want to list components on
the screen. Thanks...
(Note: I am using vs2005)
 
G

Guest

Hello sir!
This should work:
(in a Form)

foreach(IComponent component in components.Components)
{
//your code here
}
 
A

Adam Right

Hi,

I am using toolstripmenu which is a component for windows form.. But when i
load the form the components is null. What is the reason for that? Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top