List Box problem

buzadaM
09-10-2003, 05:56 AM
i have a listbox control on my form which's style is 1-Checkbox
how can i realize the selected item's checkbox is checked or not

i am trying to do is; when user clicked a command button i have to look the listbox's items and assign the checked ones to an array
so i have to realize the checked items

thanks

pradeep
09-10-2003, 06:06 AM
Dim i As Integer
For i = 0 To List1.ListCount - 1
If List1.Selected(i) = True Then
MsgBox List1.List(i)
End If
Next

hope this helps...

buzadaM
09-11-2003, 02:14 PM
thank you
i'll try

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum