找到一个形式集中控制(在.netCF)集中控制、形式、netCF

2023-09-05 02:19:59 作者:分钟前

我有,我想知道哪些控制上具有焦点的形式。

I have a form that I want to know which control on it has focus.

我怎样才能做到这一点?我见过最好的解决办法有我遍历屏幕上的所有控件。虽然可行,这似乎是一个大量的工作只是为了知道哪些控件具有焦点。

How can I do this? Best solution I have seen has me iterating all the controls on the screen. While doable, it seems like a lot of work just to know which control has the focus.

推荐答案

它看起来像THIS是的路要走CF。

It looks like THIS is the way to go on CF.