I have an odd problem I'm working on a programs that loads data from a text file into a listbox. the text file contains multiple types of data but the list box only displays names from the file.
when you load up the program it loads all the names into the listbox and all works fine and gets displayed. I have button on the form to add new data, it stores the new data to the file and adds the name to the listbox.
problem is when I add the name to the listbox nothing shows up. the data gets added to the file just fine but the listbox doesn't get updated. I have tried listbox.refresh and update to no avail. however when I restart the program the newly added name shows up.
I know it used to update just fine but I have done allot of work to the program and added lots of code since then.
Did I change something somewhere with out knowing it that doesn't let it update while the program is running? its probably just some weird bug with my code but I thought I would give it shot and see if anyone might know something.
BTW i'm working with vb.net 2005
when you load up the program it loads all the names into the listbox and all works fine and gets displayed. I have button on the form to add new data, it stores the new data to the file and adds the name to the listbox.
VB.NET:
//get data from user
//add data to file
//add name to listbox
listbox.items.add(name)
I know it used to update just fine but I have done allot of work to the program and added lots of code since then.
Did I change something somewhere with out knowing it that doesn't let it update while the program is running? its probably just some weird bug with my code but I thought I would give it shot and see if anyone might know something.
BTW i'm working with vb.net 2005