Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus on textbox doesn't select contents
Message
De
09/08/1999 11:34:03
 
 
À
09/08/1999 11:27:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00251405
Message ID:
00251509
Vues:
18
>>It works -- but not all the time [at least in this case]. It works on the first tab I select, but not the next. I can't establish a pattern. One thing that works every time is to click on the tab twice. Once I do that it works every time that tab is selected from that time forward [until the form is closed].
>>
>>I put the setfocus in the page activate method. Could this be causing the problem?
>>
>
>it goes in the GOTFOCUS of the TEXTBOX, not the ACTIVATE of the PAGE.
>

To expand on this, if you want to jump to a specific textbox on the page and have the text automatically selected any time the page is activated, put the SelStart/SelLength code in the textBox's GotFocus event, and put a call to textbox.SetFocus in the page's Activate event.

>>Thanks,
>>Doug
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform