Hi I have a listbox with checkboxes, there are "n" number of check boxes, I want to make them checked (true) when I am loading the form? how to do?
Printable View
Hi I have a listbox with checkboxes, there are "n" number of check boxes, I want to make them checked (true) when I am loading the form? how to do?
You might try this:
Dim MyControl As Control
For Each MyControl In me.Controls
If TypeOf MyControl Is CheckboxBox Then MyControl.value = vbchecked
Next MyControl
Checkbox controls or checked items in a listbox?
I have a listbox
lstbom.ListStyle =fmListStyleOption
On loading of form, all the check boxes i the list box are unchecked (false),
but I want them as checked (true)
VB Code:
Dim i As Long For i = 0 To List1.ListCount - 1 List1.Selected(i) = True Next
Thank you hack . works nice