List1.Style = CheckBox How to check.??? List1.List(1).Checked = True doesn't work??
Try this: VB Code: Option Explicit ' Set Listbox style to Checkbox Private Sub Form_Load() Dim x As Integer For x = 1 To 5 List1.AddItem x Next x End Sub Private Sub List1_Click() List1.Selected(List1.ListIndex) = True End Sub
Option Explicit ' Set Listbox style to Checkbox Private Sub Form_Load() Dim x As Integer For x = 1 To 5 List1.AddItem x Next x End Sub Private Sub List1_Click() List1.Selected(List1.ListIndex) = True End Sub
Why not use a ListView (set to Report View) if you want checkboxes. And it it much better then listbox anyway.
--------------------- IconTextBox Custom Control DropDown ListView Custom Control
Forum Rules