I have a list box in my app with the style set as checkbox.
Q - how do I get some of my checkboxs to be already ticked when my form is shown to the user? I need this to represent default options.
Thanks
Jas
Printable View
I have a list box in my app with the style set as checkbox.
Q - how do I get some of my checkboxs to be already ticked when my form is shown to the user? I need this to represent default options.
Thanks
Jas
option Explicit
private Sub Form_Load()
Dim X
for X = 0 to 10
List1.AddItem X
next X
List1.Selected(1) = true ' set item one as checked
End Sub
John G
Thanks John. Obvious when you see the code :-)
The ListBOx control does not follow the normal rules, hence the confusion. I, as well as many others, find it confusing.
John G