public interface IFormForManager { int iRecordKey {get;set;} }Each of your Forms that need to be controlled by your FormsManager will have to be changed to implement the IFormForManager interface.
public Form GetOpenForm(FormTypes type, int iRecordKey) { Form oRetVal = null; foreach(IFormForManager oForm in oWindows) { if (oForm.iRecordKey == iRecordKey) { oRetVal = oForm; } } return oRetVal; }~~Bonnie
>private static ArrayList oWindows = new ArrayList(); >>
>public void GetOpenForm(FormTypes type, int iRecordKey) >{ > form oRetVal = null; > > foreach(form oForm in oWindows) > { > if (oForm.iRecordKey == iRecordKey) > { > } > } >} >>