By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,996 Members | 1,095 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,996 IT Pros & Developers. It's quick & easy.

Windows form components enumarating does not work?

P: n/a
Hi,

I want to list components on the screen by enumarating the components.
For example, I am using toolstripmenu which is a component for windows
form.. But when i load the form, the components is null.

foreach(IComponent component in components.Components)
{
//my code is here
}
What is the reason for that?
Thanks...
Mar 30 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
> I want to list components on the screen by enumarating the components.
For example, I am using toolstripmenu which is a component for windows
form.. But when i load the form, the components is null.

foreach(IComponent component in components.Components)
{
//my code is here
}


Where/when are you executing that? Within FormLoad it ought to work fine.
Mar 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.