I want call a method in the all opened forms
this code call MyUpdateFnc() on the last csutomer Opened Form:
if (Application.OpenForms["frmCustomer"] != null)
{
(Application.OpenForms["frmCustomer"] as frmCustomer).MyUpdateFnc();
}
Several forms may be open.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…