private static ArrayList oWindows = new ArrayList();The I have a method to return an instance of a form in the collection:
public void GetOpenForm(FormTypes type, int iRecordKey) { form oRetVal = null; foreach(form oForm in oWindows) { if (oForm.iRecordKey == iRecordKey) { } } }Problem is, the references to oForm in the code above are not User or Item forms, so the iRecordkey reference fails to compile. Add to this, the Item and User forms are not based off any single base form.