Create a Cross-Container Tab Index

后端 未结 2 1923
花落未央
花落未央 2021-01-26 01:28

I\'m facing a little problem I can\'t seem to solve. The problem is in an WinForm I have several containers (TabControls, Panels, ...).

The Tab-order within the controls

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-26 01:46

    You could work with the Leave event of that Control, and manually set focus in the code behind to do this.

    private void textBox1_Leave(object sender, System.EventArgs e)
    {
        textBox2.Focus();
    }
    

提交回复
热议问题