2
WinForms, 특정 인스턴스 유형의 모든 활성 창을 찾는 방법.Windows Forms는 모든 활성 양식 인스턴스 유형을 찾습니다.
WinForms, 특정 인스턴스 유형의 모든 활성 창을 찾는 방법.Windows Forms는 모든 활성 양식 인스턴스 유형을 찾습니다.
이 사용 LINQ 같은 것을 할 수있는 :
var forms = from f in Application.OpenForms.OfType<Form1>()
select f;
을 또는 당신은 추가 기준, 같은이 있다면 :
var forms = from f in Application.OpenForms.OfType<CustomerForm>()
where f.HasChanges
select f;
을