Checkbox in listview 
Author Message
 Checkbox in listview

I don't now how to (with VB code) check and uncheck the checkboxes in a
listview.
Please help me to understund how I can do that!

/Snabbve



Sun, 05 Sep 2004 07:10:02 GMT  
 Checkbox in listview
'=============
Private Sub Form_Load()
   Dim i As Integer
   With ListView1
      .View = lvwReport
      .Checkboxes = True
      .ColumnHeaders.Add , , "Test"
      For i = 1 To 10
         .ListItems.Add , , "Item " & i
      Next
      Set .SelectedItem = .ListItems(10)

      'Place a check in the 3rd item '<<<<<<<<<<<<<<<<<<
      .ListItems(3).Checked = True
   End With
End Sub
'=============

--
Ken Halter
MS-MVP-VB
Please keep it in the groups..


Quote:
> I don't now how to (with VB code) check and uncheck the checkboxes in a
> listview.
> Please help me to understund how I can do that!

> /Snabbve



Sun, 05 Sep 2004 07:18:25 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Checkbox in ListView

2. Three state checkbox in listview

3. Greyish checkboxes in ListView

4. read-only checkboxes for listview

5. Checkboxes in listview

6. Programmatically set checkboxes in ListView???

7. Checkboxes in Listview?

8. Checkboxes in ListView control

9. checkbox in ListView

10. Checkbox in listview

11. Checkbox in listview

12. Checkbox in listview

 

 
Powered by phpBB® Forum Software