[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.
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
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?
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.
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.
?
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.