i am developing an applicat开发者_如何学Pythonion in which there are many form i want to get a colletion of all these forms which are in open or hide state. how would i implement this.
This will help you get all forms opened by the application
FormCollection col = Application.OpenForms;
In .net 4.0 there is still a defect with Application.OpenForms. The form will be removed from the list of forms when changing ShowInTaskbar property. Use Application.OpenForms if you are sure that they do not change ShowInTaskbar. Otherwise think about managing your own OpenForms collection
精彩评论