Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting focus on textbox doesn't select contents
Message
From
09/08/1999 10:52:31
 
 
To
09/08/1999 10:48:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00251405
Message ID:
00251462
Views:
16
>Hi Doug ----
>
>Try adding a "K" to the Format property of the Textbox.
>

Another trick that works consistently is to have the GotFocus event code change the SelStart property to 0 and the selLength property to a size equal to or greater than the total number of characters in the value. Unlike K, it works when you select the field either by tabbing to it or by a mouse click.

>>I have a textbox on a pageframe. I want to set focus to the textbox when the user selects the page. I have the SelectOnEntry property set to .T. but when I select the page, it sets the focus to the textbox, but the contents are not selected. If I begin typing it does not overwrite the existing contents of the textbox [as it should]. Any ideas?
>>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform