Hi all i am checking the content of textbox against a listbox items as shown in the following code. But i want to improve this code so not only it detects the exact matches but also if any part of words from listbox is found in textbox then command6 is triggred as well .
For example i got word tony in the listbox. If the content of text2 is some thing like tony ck ,you are tony , tony is good dude...it also detect those patterns and call the command6 buton. I be happy if some one show me how i can make such compare.Looking forward for reply.Thanks
For example i got word tony in the listbox. If the content of text2 is some thing like tony ck ,you are tony , tony is good dude...it also detect those patterns and call the command6 buton. I be happy if some one show me how i can make such compare.Looking forward for reply.Thanks
Code:
For au = 0 To Form1.List1.ListCount - 1
If Form1.List1.list(au) = Text2 Then
Command6_Click ' this will send warning
End If