Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
in form1 , objects , label1, listbox2 ,listbox3 , listbox1

listbox1 and listbox2 and listbox3 , it has items

"flash 354 " "windows 1"

listbox2
"flash 456 " "--22-- windows 1"

listbox3
"flash 65 " "play-- windows 1"

i want to when i click listbox1 or 2 or 3 then label1 , detect items that have word with
" windows "

and

then label1.text = listbox1.text
else
label1.visible =false
Posted

1 solution

Something like this?

VB
If listbox1.SelectedItem.ToString.Contains(" windows ") Then
   label1.Text = listbox1.Text
Else
   label1.Text = String.Empty
End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900