Author: Bill Kressbach
Posted: 2001-10-09 at 18:08:32
Here's how I do it. Somewhere in your startup code define the variable
"plselect" make it public and set it to .F.
In the GotFocus event put:
this.SelStart=0
this.SelLength=len(this.value)
plSelect=.T. &&_Mark that object is selected
In the MouseUp event put:
if plSelect
this.SelStart=0
this.SelLength=len(this.value)
plSelect=.F.
endif
Kind of a pain but it's always worked for me.
Bill
> Ok, I've got an editbox with Format="K" and it's not selecting all the
text
> when I set focus to the box!!! Argh!
>
> How can I programatically do this in the GotFocus event of the editbox???