TextBox Focus VS Select

  • Thread starter Thread starter Micah
  • Start date Start date
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 ?
 
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?
 
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?)?
 
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 ?
 
Back
Top