Results 1 to 5 of 5

Thread: Check Box Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    8

    Check Box Question

    Hi

    I have 44 check boxes in my program and what i want to do is for 6 of those 44 to be selected?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    what is the question?
    -= a peet post =-

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    8
    my question is how can i get exactly 6 boxes to selected?

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    sorry you have to explain in more detail..

    what checkboxes do you want to check, when do you want them to be checked, and are all these chckboxes part of a control array or not ????

    you must give us some more information, in order for us to answer your question...
    Last edited by peet; Jul 31st, 2002 at 06:46 AM.
    -= a peet post =-

  5. #5
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    one way of selecting 6 checkboxes

    VB Code:
    1. Dim c As Control
    2.     Dim i As Integer
    3.     For Each c In Me
    4.         i = i + 1
    5.         If i = 6 Then Exit For
    6.         c.Value = vbChecked
    7.     Next c
    -= a peet post =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width