3

Possible Duplicate:
What's the difference between Control.Select() and Control.Focus()?

What is the difference between Control.Focus() and Control.Select()

And is it correct to assume that the form.ActiveControl invokes the Select method of the specified control?

Community
  • 1
  • 1
Martijn
  • 24,441
  • 60
  • 174
  • 261

1 Answers1

3

The Focus() function actually performs the focussing on the control. The Select() function is higher-level, and tells the parent to select through the control's hierarchy.

There is loads of logic in the Select function to make custom controls work fully with the framework.

If all you want to do is literally call focus on the element, there is no advantage on using Select... it makes me wonder why Focus isn't kept as a private/protected function.

Greg
  • 21,235
  • 17
  • 84
  • 107
  • So, Select() tells the parent to set the ActiveControl to the control where Select() is invoked? – Martijn Nov 25 '10 at 13:58