Deleting specific text in a listbox

bibiteinfo
04-22-2003, 06:49 PM
Hi!

I want to remove some text out of my listbox, I don't know where it's place and I want it to be on form_load so I can't use


List1.RemoveItem (List1.ListIndex)


How could I place these elements in a string?


Thanx in advance for any help!

dianecandice
04-22-2003, 07:35 PM
Private Sub Form_Load()
List1 = yourStringToBeDeletedFromListBox
If List1.ListIndex <> -1 Then
'to make sure that your string was found in the listbox
List1.RemoveItem List1.ListIndex
End If
End Sub

bibiteinfo
04-22-2003, 08:44 PM
Thanx a lot sir!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum