[Help]Search TextBox[Solved]
Ok basically a textbox is full of names in it:
It says:
Code:
NextGen1
MJLover
Ilovewater
ppl2pass
There is another textbox to type the name you want to search.
For example if i type: MJLover, it will search the whole textbox.text and go and highlight the text.
Ok here's the code, I don't have the time to explain...gtg:
[php]
Dim start
Dim [end]
'replace txtFind with the text you want to find...
Dim word_find as string= txtFind.Text
Here 'r.text' is the textbox you are searching in. Replace it with your textbox...
start = InStr(1, r.Text, word_find, CompareMethod.Text)
[end] = Len(word_find)
Try
Dim finalStr As String = Mid(r.Text, start, [end])
MsgBox("Item Found...")
Catch ex As Exception
MsgBox("Item not Found...")
End Try
[/php]
This will tell you if your item exists or not !!!!!!