• Welcome to Valhalla Legends Archive.
 

listview user leave question

Started by JetBlk, April 07, 2006, 07:50 PM

Previous topic - Next topic

JetBlk

hello i am having problems with removing people from my list view for the bnet bot channel list. It removes fine but the problem is that where the user has been removed, there is a blank space. Once another user joins the channel the space is filled. when the first person leaves, shouldnt the people below him move up to fill the space? here is the code how i remove the user under the leave handler...


frmMain.lvChannel.ListItems.Remove frmMain.lvChannel.FindItem(Username).Index


how would i make the people in the list below the user that left move up to fill the space?

thanks

FrOzeN

Add this after removing users from the list,
frmMain.lvChannel.Refresh
~ FrOzeN

JetBlk

#2
tried that already... somone on irc told me to set it to report... i had it in SmallIcon style before.... Once i set it to report nothing would add for some reason. Any ideas?

*EDIT*

Got it to work with the help of "TehUser" on irc