Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27235

VS 10 Avoid duplicates problem.

$
0
0
by the way .list1 from any other thread that helped doesnt work for my vs 2010 basic dont know why.
and also list

sample of my code.

-----------------------------------
If TextBox1.Text = cd Then
ListBox1.Items.Add("alco")
ListBox1.SelectedIndex = ListBox1.Items.Count - 1 'for auto scroll it down'


End If

-----------------------------------

so thats the textbox1.text, when i input cd on the texbox1
it automatically put "alco" on the listbox..

how can i avoid when i enter cd again on the textbox it doesnt allow it
to put it on the listbox1 since it has already got the alco in it..

ps: the textbox1.text is not my storage.. its just an input to put inside the listbox.1

Viewing all articles
Browse latest Browse all 27235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>