|
-
Sep 22nd, 2003, 01:01 PM
#1
Thread Starter
Junior Member
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?
-
Sep 22nd, 2003, 01:20 PM
#2
Sleep mode
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:
Dim ctrl As Control
For Each ctrl In Me.Controls
If TypeOf ctrl Is CheckBox Then
If DirectCast(ctrl, CheckBox).Checked = True Then
MessageBox.Show(ctrl.Name)
End If
End If
Next
-
Sep 22nd, 2003, 01:24 PM
#3
Thread Starter
Junior Member
No I mean when you tab to a control it is usually highlighted or outlined with a border.
-
Sep 22nd, 2003, 01:29 PM
#4
Sleep mode
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|