Hi Alls Buddy,

I'm still stuck to check value in listbox either more than one or duplicate value when keep in in textbox.... i got one textbox as search box and one listbox.....when i keep in the value it will load into listbox with this coding "

if textbox1.text <> listbox1.text then
end if

The problem is i want to check if the value more than one then the msgbox will alert me to inform there got 2 same value...

Anyone can guide me plz....thank in advance

u have to use a loop to check the values

While counter < listbox1.Items.Count
            If testbox1.Text = listbox1.Items(counter) Then
                MessageBox.Show("This item already exists", "Duplicate Entry")
                Exit Sub
            End If
            counter = counter + 1
        End While