TextBox Focus VS Select

M

Micah

I am trying to set focus of a textbox on a form. I understand that Select and
Focus calls the same API but why would Focus work and Select not work ?
 
H

Herfried K. Wagner [MVP]

Micah said:
I am trying to set focus of a textbox on a form. I understand that Select
and
Focus calls the same API

How do you come to this perception?
but why would Focus work and Select not work ?

When/where does 'Focus' work and 'Select' doesn't work?
 
H

Herfried K. Wagner [MVP]

Micah said:

Well, Jeffrey Tan [MSFT]'s reply is pretty clear IMO. 'Focus' performs
certain checks if setting the focus would be successful, which 'Select' is
not doing.
When I call Select it does not set the focus to the TextBox When I call
Focus it sets to focus to the textbox

Where are you calling it (is the control/form/container visible and
enabled?)?
 
M

Micah

Nothing is disabled, and everything is visible, its in a container. If Focus
does a bunch of check then calls the API and Select Just calls the API why
won't both work ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top