|
-
Feb 2nd, 2005, 08:32 AM
#1
Thread Starter
Addicted Member
How to make all checkbox to true **RESOLVED**
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?
Last edited by thiru_rajamani; Feb 2nd, 2005 at 01:20 PM.
Thanks
Raj
-
Feb 2nd, 2005, 08:36 AM
#2
PowerPoster
Re: How to make all checkbox to true
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
-
Feb 2nd, 2005, 08:58 AM
#3
-
Feb 2nd, 2005, 12:01 PM
#4
Thread Starter
Addicted Member
Re: How to make all checkbox to true
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)
-
Feb 2nd, 2005, 12:13 PM
#5
Re: How to make all checkbox to true
VB Code:
Dim i As Long
For i = 0 To List1.ListCount - 1
List1.Selected(i) = True
Next
-
Feb 2nd, 2005, 01:20 PM
#6
Thread Starter
Addicted Member
Re: How to make all checkbox to true
Thank you hack . works nice
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
|