>Hi Barbara.
>
>>> In order to get this to work properly with a mouse click, I have the following code in the GotFocus method of my textbox class:
>
>if this.SelectOnEntry
> Dodefault()
>endif
>
<<
>
>Which also produces some interesting behavior if you happen to have code in the Valid method of the textbox since this causes the Valid to fire when the control gets focus ;-)
>
>Marcia
Actually, I bet I know what you're going to say. <g> Have a property of the textboxclass called something like lGettingFocus. Change the code to:
if this.SelectOnEntry
this.lGettingFocus = .T.
Dodefault()
this.lGettingFocus = .F.
endif
And bracket your Valid code so it only runs if this.lGettingFocus is .F. Am I close? <bg>