Setting the focus state of a control


To bring a control into focus the SetFocus() method is used. For example, the following brings the combo box comboControl1 into focus:

.comboControl1.SetFocus()