THISFORM.LockScreen = .T. && avoid flickering WITH THISFORM.Edit1 .SelStart = LEN(.Value) .SetFocus() ENDWITH THISFORM.LockScreen = .F.