找到一个形式集中控制(在.netCF) [英] Find the focused control in a form (in .netCF)

查看:205
本文介绍了找到一个形式集中控制(在.netCF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

推荐答案

它看起来像<一个href="http://stackoverflow.com/questions/1648596/c-net-compact-framework-custom-usercontrol-focus-issue/1648653#1648653">THIS是的路要走CF。

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

这篇关于找到一个形式集中控制(在.netCF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆