Results 1 to 15 of 15

Thread: [RESOLVED] multible choice checkboxes beside a line what is the best componet control to use

Threaded View

  1. #15
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: [RESOLVED] multible choice checkboxes beside a line what is the best componet c

    I see that you've marked the thread as resolved, but do you really want to disable the other CheckBoxes ? If the user can only select one correct answer then I would emulate the OptionButton methodology (as far as possible) and set all others to zero when one has been selected
    Code:
    Private Sub Check1_Click(Index As Integer)
    Dim intI As Integer
    Static boChange As Boolean
    If boChange Then Exit Sub
    boChange = True
    For intI = 0 To Check1.ubound
        If intI <> Index Then
            Check1(intI).Value = 0
        End If
    Next
    boChange = False
    End Sub
    Last edited by Doogle; Aug 21st, 2012 at 12:50 AM. Reason: Simplified code

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