YouTip LogoYouTip

Prop Webcontrol Listcontrol Items

# ASP.NET Items Property * * ListControl Control Reference](#) * * * ## Definition and Usage The Items property represents the items in a list control. This property is commonly used to get the properties of each item in the list control. * * * ## Example The following example displays multiple selected checkbox items: Sub ClickCheck(sender As Object, e As EventArgs) lbl1.Text = "Selected Item(s):
" Dim i As Integer For i = 0 To cb1.Items.Count - 1 If cb1.Items(i).Selected Then lbl1.Text = lbl1.Text & cb1.Items(i).Text & "
" End If Next End Sub
[Demo Example Β»](#) * * ListControl Control Reference](#)
← Prop Webcontrol Listcontrol SeProp Webcontrol Listcontrol Da β†’