Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Check if listview item is tagged

What do you mean with tagging? Selected?
Has this to do anything with the anime project you made a previous thread about?

Also explain more, i dont understan what you mean with this.
Code
I want it so it checks if the item is checked and then ignores displaying that item
(Oct 14, 2014 11:41 AM)ElementalTree Wrote:  Uh yeah so you remember, then i can explain it a little better. I get the episodes into the listview right, and if the top 3 items matches any of the items in another listview it displays a message saying that this/these episodes have released. Now after this refreshes again and one of those items are still in the top 3 it keeps showing the message over and over until new episodes gets released and replaces the top 3 items. I want it to like check these items after showing the message once so it wont repeat.

My first thought would be placing the code in the SelectedItemChange for the listview, but not so sure if its going to work out.

Have you tried to google your problem?
(Oct 14, 2014 12:29 PM)ElementalTree Wrote:  Yeah alot of times actually, didn't find one that fit my problem

Also instead of using .Contains when you check if the items exist in another listbox do it like this

Code
For Each item In ListBox1.Items
For Each item2 In ListBox2.Items
If item2 = item Then
'one item has been found
'msgbox(item & "exists in listbox2")
End If
Next
Next

Wrote this from my phone but it should work.
Well there is not much difference from my code than yours actually rather than yours checking if a string contains another string.
ie if checking if "dog" exists in "crack baby dog" it will return true (your code)

My code will check if a string is identical to another string.

I dont see any problem sticking with your current code for the checking though.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by IAmBabyFinnApr 10, 2016 09:50 AM 5 206 Apr 10, 2016 09:50 AM
Last Post: IAmBabyFinn
[.NET] by 270zFeb 24, 2016 05:33 PM 7 227 Feb 24, 2016 05:33 PM
Last Post: Ninja
[.NET] by OneTXxLFeb 10, 2016 08:53 AM 4 164 Feb 10, 2016 08:53 AM
Last Post: OneTXxL