开发者

How to find colletion of Forms?

开发者 https://www.devze.com 2023-02-27 06:56 出处:网络
i am developing an applicat开发者_如何学Pythonion in which there are many formi want to get a colletion of all these forms which are in open or hide state. how would i implement this.This will help yo

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

精彩评论

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