Results 1 to 6 of 6

Thread: [RESOLVED] [2005] Tab and that "blue box"

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

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

  2. #2
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    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:
    1. Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs)
    2.         Dim t As TextBox = DirectCast(sender, TextBox)
    3.         t.Select(0, 0)
    4.     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

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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?

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    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.

    ?

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Posts
    751

    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
  •  



Click Here to Expand Forum to Full Width