I want a certain button on a form to start with the focus. I have tried the following:
However, it does not have any effect. The control with startup focus is always the first control in the tab order. What is a good way of doing this?Code:private void MainFrm_Load(object sender, System.EventArgs e)
{
button2.Focus();
}
public MainFrm()
{
InitializeComponent();
button2.Focus();
}