Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这段代码:
this.MoveFocus(new TraversalRequest(FocusNavigationDirection.Last));
将焦点移动到最后一个控件。
但是有没有办法只问最后一个控件是什么?没有实际搬到那里?
您可以使用 Control.GetNextControl 方法,因为它以子控件的 Tab 顺序向前或向后提供下一个控件。