When I select a list item from the listbox which creates another
dialog box, the list item loses focus (grayed out) when the dialog box
is closed. What should I do to re-instate the focus on the list item?
My code snippet is as follows:
private void Results_SelectedIndexChanged(object sender,
if (Results.FocusedItem != null)
string FarmId = Results.FocusedItem.Text;
FarmRecordEntry record = new FarmRecordEntry();
conn = new SqlCeConnection ("Data Source = " + sdfFilePath);
// Getting details of the farm selected...
record = getFarmRecord(FarmId, conn, record);
FarmModuleForm1 farmModule = new FarmModuleForm1(FarmId, record);