Live Chat Icon For mobile
Live Chat Icon

Why do calling Focus() on a control not set focus on it?

Platform: WinForms| Category: Controls

Note that when you call this method the control should be visible, otherwise the focus will not be set. Hence calling this in say Form_Load on a control in the form will be ineffective. You should instead consider give that control an appropriate TabIndex, so that it will be the first focused control.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.