By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

Focus() problem

P: n/a
I am setting the focus to an edit box. However, although htis is working,
when the focus goes to the edit box, any text inside the edit box needs to
be selected, like when you manually tab to an edit box.

With Focus(), the cursor moves to the box, but it doesn't select the text.

Anyway to fix this ?
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello,

Do: theField.focus();theField.select();

--
Elias
http://lgwm.org/
"Craig" <my****@myaccount.com> wrote in message
news:3f***********************@lovejoy.zen.co.uk.. .
I am setting the focus to an edit box. However, although htis is working,
when the focus goes to the edit box, any text inside the edit box needs to
be selected, like when you manually tab to an edit box.

With Focus(), the cursor moves to the box, but it doesn't select the text.

Anyway to fix this ?

Jul 20 '05 #2

P: n/a
Thanks, Elias.
Worked a charm!

Craig
"lallous" <la*****@lgwm.org> wrote in message
news:br*************@ID-161723.news.uni-berlin.de...
Hello,

Do: theField.focus();theField.select();

--
Elias
http://lgwm.org/
"Craig" <my****@myaccount.com> wrote in message
news:3f***********************@lovejoy.zen.co.uk.. .
I am setting the focus to an edit box. However, although htis is working, when the focus goes to the edit box, any text inside the edit box needs to be selected, like when you manually tab to an edit box.

With Focus(), the cursor moves to the box, but it doesn't select the text.
Anyway to fix this ?


Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.