1 Attachment(s)
VB.Net listbox population
When reading the text file, i populate the
list boxes in my form for each field. since some records in the file have duplicate field items, they show up more than once in my list box as a user selection. My list boxes are for users to select say candy flavor then write the
selections back to the same file that it opened for reading?
Code below in file attachment
Re: VB.Net listbox population
Try loading the data to an array then placing the data from the array into the listbox. That way you can look through the array for any dupes and move on to the next item
Keith
Re: VB.Net listbox population
You can use ListBox.FindString and ListBox.FindStringExact to see if the item is already there.