Re: Textbox select all content when tabbed
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 05/03/04
- Next message: Herfried K. Wagner [MVP]: "Re: combo box starts off blank"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: BeginEdit Method (Event?)"
- In reply to: CT: "Re: Textbox select all content when tabbed"
- Messages sorted by: [ date ] [ thread ]
Date: 03 May 2004 18:39:40 +0200
* "CT" <carstent@spammersgoawaydotnetservices.biz> scripsit:
> Try entering and deleting the text in a text box and tab to and from it,
> then it won't auto-select the entire text.
Thank you for making me aware of that. This will occur if you changed
the text of the textbox.
Solution: Add a handler to the textbox's 'GocFocus' event (you will
have to create this handler yourself because it's not listed in the
list of available events) and enter this code:
\\\
DirectCast(sender, TextBox).SelectAll()
///
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
- Next message: Herfried K. Wagner [MVP]: "Re: combo box starts off blank"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: BeginEdit Method (Event?)"
- In reply to: CT: "Re: Textbox select all content when tabbed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|