The simplest way I know is to put the following into the GotFocus() event:This.SetFocus()
Along with setting the SelectOnEntry property to .T.Which also causes the Valid() of the textbox to fire when it gets focus. So if you have some validation code that is called from the valid, you could get some very unexpected behavior whenever the textbox gets focus < s >