When I click on the line of writting in the listbox, it displays the 5 textboxes with the data of that which I entered. If I change one textbox entry and hit the button, the listbox's display should update but it doesnt.
When I double click on the listbox, this is the code I have for it:
if (listBox1.SelectedIndex > -1)
{
int index = listBox1.SelectedIndex;
Bus myBus = myFleet.fleet.ElementAt(index);
frmBus busGui = new frmBus();
busGui.bus = myBus;
busGui.Show();
updateFleetList();
}
My code above should ceate a new form for entering data which it does, take the data from the textboxes about the bus form, and load them into the listbox which it does. It is stored in a fleet list called myFleet.
updateFleetList(); I would of thought this would have updated the list but it doesnt appear to do so.
Have I missed something?

New Topic/Question
Reply




MultiQuote






|