WITH This IF .SelectOnEntry TextBox::GotFocus() .SelStart = 0 .SelLength = LEN( .Text ) NODEFAULT ENDIF ENDWITHYou need to execute the VFP base class behavior (Textbox::GotFocus()) before you set the SelStart and SelLength and supress it afterward (NODEFAULT) because the default behavior of the native GotFocus() behavior is to reset SelStart and SelLength.