|
-
Sep 25th, 2002, 03:47 AM
#1
Thread Starter
New Member
CheckBox focus rectangle
Does anyone know how to disable the focus rectangle that appears around the text of a checkbox when TABing into it?
-
Sep 25th, 2002, 04:10 AM
#2
Fanatic Member
Does not appear to be a way - BUT, you can cheat! You can just set the text of the checkbox to nothing and then put a separate Lable control right next to it.
-
Sep 25th, 2002, 04:32 AM
#3
Thread Starter
New Member
Yeh... and most probably i'll do that, since this checkbox is itself inside my usercontrol...
BUT - i know there is a read-only UICuesEventArgs property called ShowFocus that is accsisable when the ChangedUICues event of the combobox is fired. This event is fired only at the first time i use the TAB in the form (even not if prior to that i have clicked on the combobox!). so as long as it was not fired, the rectangle doesn't show. after it was fired, the rectangle shows. So i'm sure there is some function/method call to change this property. (it was so easy in VB6!)
-
Sep 26th, 2002, 01:52 AM
#4
Thread Starter
New Member
Originally posted by Slow_Learner
Does not appear to be a way - BUT, you can cheat! You can just set the text of the checkbox to nothing and then put a separate Lable control right next to it.
I got a great suggestion from a mr jacob grass, to create my own checkbox:
Public Sub MyCheckBox
Inherits CheckBox
Public Sub New()
MyBase.New()
ShowFocusCues = False
End Sub
End Class
ShowFocusCues is a Protected Property of Control and only accessible in the class itself or derived classes.
Uri
-
Sep 26th, 2002, 05:28 AM
#5
Fanatic Member
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
|