|
-
Jul 8th, 2008, 10:48 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] [2005] Tab and that "blue box"
When I tab through my textboxes, some of them will have the text wrapped in the blue "edit" box and some don't.
I can't seem to find an option in properties that relates to this....in fact at first glance, it looks like properties are the very same for all of my textboxes.
I'd like to have the boxes all the same -- blue box or none.
THANKS for any help.
-
Jul 8th, 2008, 11:10 AM
#2
Re: [2005] Tab and that "blue box"
what you are seeing is the selected text within the textbox. One way to avoid seeing the blue is to unselect the text in the textboxes GotFocus event...
vb Code:
Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs)
Dim t As TextBox = DirectCast(sender, TextBox)
t.Select(0, 0)
End Sub
kevin
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Jul 8th, 2008, 11:11 AM
#3
Re: [2005] Tab and that "blue box"
I'm not sure what you mean by "blue box" but I suspect that you are referring to the fact that all the text in the box is selected when that control gets focus?
Is this the case?
-
Jul 8th, 2008, 11:20 AM
#4
Thread Starter
Fanatic Member
Re: [2005] Tab and that "blue box"
Does it really operate that sporadically?
No other way but to take care of it in code?
Thanks for the tip.
-
Jul 8th, 2008, 11:21 AM
#5
Thread Starter
Fanatic Member
Re: [2005] Tab and that "blue box"
I forgot to add ....
because I'm not really selecting anything...just jumping from box to box with the tab key.
?
-
Jul 8th, 2008, 11:25 AM
#6
Thread Starter
Fanatic Member
Re: [2005] Tab and that "blue box"
What I just did is do a select in the 1st box and then tab through....seems like it's operating consistently now.
I never tried to select before...so "something" happens after you use it for the first time.
problem solved it seems.
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
|