• Welcome to Valhalla Legends Archive.
 

ListView Subitem not removing [VB]

Started by FuzZ, April 01, 2004, 10:03 AM

Previous topic - Next topic

FuzZ

Well, only sometimes does this happen but my Lag icon which is a SubItem on the ListView are not always properly removed when it removes the item. (excuse my ignorance on listviews, i don't completely understand them yet.)
Example:

It's even worse in this one that I just took


This happened last night when we were getting floodbotted
Sometimes it's even worse with the latter of the entire list messed up with different lag icons. And, I noticed in that picture it's not even lined up correctly. If you need code, just ask.

Puzzle


frmMain.lwRoomUsers.ListItems.Remove (frmMain.lwRoomUsers.FindItem(User).Index)

If that doesn't help then post some code.

Gangz

Did you make sure you have it removing the whole line instead of split it and trying to remove both?

Eli_1

This happens to me sometimes. Another thing similar to this that happens is all the icons for a certain client will tweak out and appear different. I don't know why this happens but if you drag the bot past the side of the screen and bring it back, it will look right again :P

Stealth

I don't quite remember how I fixed this, so long ago. Many releases ago I had this problem, I believe it was solved by .Refreshing the listview. Try it and let me know.

'pseudocode
Listview.Enabled = False
'add/remove user
Listview.Refresh
Listview.Enabled = True


You may have to switch the Enabled and Refresh calls.
- Stealth
Author of StealthBot

FuzZ

#5

Public Sub DelNick(ByVal strNick)
   frmBNet.lstNicks.ListItems.Remove .FindItem(strNick).Index
End Sub


I haven't experienced anything with client icons...yet.. lol
I'll try that stealth, thanks..
Edit-> So far it seems to be working, but I haven't been in a real high traffic channel yet.. probably just gonna have to wait to check that end of it out.

Sorry it took me so long but I've been working on adding BNLS for war3, which also i'm having trouble with but that's another story :P