Re: Auto-select text in editbox

Author: Dan Covill

Posted: 2001-10-09 at 13:42:18

Michael:

As I recall, the 'K' works if you tab/enter into the box, but not if you

click on it. The cure (I believe) is to put the following into the

GotFocus() method:

this.SetFocus()

Weird, but it works.

Dan Covill

Middleton Consulting, San Diego

At 15:07 10/09/01 -0400, Michael Babcock wrote:

>Ok, I've got an editbox with Format="K" and it's not selecting all the text

>when I set focus to the box!!! Argh!

>

>How can I programatically do this in the GotFocus event of the editbox???

>

>TIA,

©2001 Dan Covill