//public frmPatient() //{ // InitializeComponent(); // patients = new PatientDB(); // state = AddState.NAVIGATE; // Populate(patients.GetCurrentRow()); // SetButtonStates(true); //} public frmPatient(Form frmmain) { this.parent = frmmain; InitializeComponent(); patients = new PatientDB(); state = AddState.NAVIGATE; Populate(patients.GetCurrentRow()); SetButtonStates(true); dv = patients.GetDataView(); listBox1.DataSource = dv; listBox1.ValueMember = "ID"; listBox1.DisplayMember = "LastName"; }