i've been trying to display a .txt file in a combo box, but all i get is one long line of all the iitems, here's the code :
Do Until EOF(1)
LineOfProduct = LineInput(1)
AllProducts = AllProducts & vbCrLf & LineOfProduct
cobProduct.Items.Add(AllProducts)
Loop
txtBox.Text = AllProducts
i also included the line cobProduct.Items.Add(AllProducts) within the loop to all items , it displays the correct number of items, but again all the items in one line and repeats it til line 21 (number of items is 21)...so please help![]()
also how do sperate a string into two ,then display the 2nd part into a sperate listBox (i managed to display the whole string in listBox) ...again help...and thank u in advance...![]()
![]()




Reply With Quote