Results 1 to 4 of 4

Thread: checkbox tabstop

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2003
    Posts
    23

    checkbox tabstop

    I have about ten checkboxes that are simply representing yes or no answers from the user. A user can tab to a checkbox and use the spacebar to Check or uncheck. However you cannot tell the checkbox has focus. When I tab to a checkbox you cannot see that the control is selected. How can I solve this?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I don't know what do you mean by selected ! but does this mean if a user checked or unchecked the checkbox ?

    Anyway , to find out what checkboxes are selected , do this :
    VB Code:
    1. Dim ctrl As Control
    2.         For Each ctrl In Me.Controls
    3.             If TypeOf ctrl Is CheckBox Then
    4.                 If DirectCast(ctrl, CheckBox).Checked = True Then
    5.                     MessageBox.Show(ctrl.Name)
    6.                 End If
    7.             End If
    8.         Next

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2003
    Posts
    23
    No I mean when you tab to a control it is usually highlighted or outlined with a border.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Then , try GotFocus Event .

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