General information
Category:
Coding, syntax & commands
>>I have a disabled textbox on a form. When i click
>>on a command button I enable the textbox and then do
>>a setfocus() to that textbox. All that works but
>>I also would like the textbox to have its contents
>>already selected.
>>
>>I have tried the following measures but to no avail:
>>
>>textbox.Format = 'K'
>>
>>textbox.When
>> This.sellength = 7
>> this.selstart = 0
>>
>>How can I get the textbox to highlight its contents
>>when it is enabled and the focus has changed to that
>>object?
>
>As a last resort, you can always do a Keyboard"{Ctrl+A}" in the gotfocus...
Oops (good name eh?), I now see the problem I created. The
textbox was disabled but I set focus to it before enabling it.
My mistake! Now it works as it should with just a Format = "K"...
Do not even need selectonentry = .T.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only