Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have set the checkboxes for ListView to true. During run time whenever the user clicks each checkbox i would like to get the status of the particular checkbox. Can this be done. Please Help.
  • *Gurus*
Posted
   Private Sub ListView1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles ListView1.ItemCheck
       Dim l As ListViewItem
       Dim s As String = ""

       For Each l In ListView1.CheckedItems
           'Do whatever you like with this item
           If s.Length = 0 Then s &= l.Text Else s &= "," & l.Text
       Next
   End Sub

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...