Sylvain: SelectOnEntry doesn't seem to help when referencing the object with .SetFocus. However, if I assign an InputMask value (the InputMask I assigned is XXXXXXXXXXXXXXX), all of the text gets selected when I call the .SetFocus.
>Try txtBox.SelectOnEntry = .T.
>
>HTH
>Even thought the txtBox.Format property is set to "K" in the Form Designer, when programmatically referencing SetFocus with ThisForm.txtBox.SetFocus, all the text is not selected.
Chuck Henry