开发者

How to find colletion of Forms?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜