Focus
sets the input focus, so setting it to the form won't work because forms don't accept input. Try setting the form's ActiveControl
property to a different control. You could also use Select
to select a specific control or SelectNextControl
to select the next control in the tab order.