Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SelectOnEntry for all TextBox
Message
From
12/03/2000 15:42:19
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00344743
Message ID:
00344754
Views:
22
>>Hi, all
>>
>>Is there anyway to put selectonentry=.t. in all Form TextBox.
>>
>>Thank's in Advance
>>
>>Joao Batista
>
>Well, if you've defined all of your textboxes off of a subclass of the VFP textbox to begin with, it should only have to be done in one place, YOUR textbox class. If all of your textboxes are VFP textboxes, then you'll have to do each one separately.


If you haven't created all of your textboxes off of your own subclass you could also put in your Form.Init method:

thisform.SetAll("SelectOnEntry",.T.,"TextBox")

If all of your textboxes are on your form, this will work. If some of your textboxes are in containers, you'll need to repeat this using the SetAll method of each container.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform