Hello,
I have a checked list view on my form.
Is there a way to check all boxes on the press of a button ?
Thanks,
Printable View
Hello,
I have a checked list view on my form.
Is there a way to check all boxes on the press of a button ?
Thanks,
vb.net Code:
Public Class Form2 Private Sub Button1_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs _ ) Handles Button1.Click For Each listItem As ListViewItem In ListView1.Items listItem.Checked = True Next End Sub End Class
Thanks Deepak, I'll give that a go as it looks like it will do the trick.