|
-
July 9th, 2001, 09:51 AM
#1
List box
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
-
July 9th, 2001, 10:30 AM
#2
Re: List box
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
-
July 9th, 2001, 11:05 AM
#3
Re: List box
Thanks John. Obvious when you see the code :-)
-
July 9th, 2001, 03:59 PM
#4
Re: List box
The ListBOx control does not follow the normal rules, hence the confusion. I, as well as many others, find it confusing.
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|