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.
我有一个包含项目的组合框,如果它未能通过验证检查(即对于有效文件名),我想防止光标离开控件。如果找到文件,基本上光标可以离开。
我认为这需要在 OnExit 事件期间完成。
如果不满足验证条件,如何将焦点带回控件?