当 ultracomboeditor 专注时想做一些事情

发布于 2024-12-13 13:30:32 字数 218 浏览 3 评论 0原文

我在 C# winform 应用程序中使用 Infragistics Controls 的 UltraComboEditior,我想在 UltroComboEditior 通过 MouseClick 或 KeyBoard Tab 按钮获得焦点时显示消息框,我该怎么做?有什么建议吗?我尝试过 BeforeDropDown,但仅当我们单击箭头按钮显示下拉列表时才会调用它,但我仅使用自动完成选项设置为 true 的下拉列表。

I am using UltraComboEditior of Infragistics Conrtrols in C# winform application, I want to show a messageBox when UltroComboEditior got focues by MouseClick or KeyBoard Tab button, how can I do it? Any suggestions ? I tried BeforeDropDown but it is called only when we click on arrow button to show drop down list but I am using only drop down with auto complete option set to be true.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

末が日狂欢 2024-12-20 13:30:33

它不是继承了 OnGotFocus您可以订阅哪些活动?

Doesn't it inherit the OnGotFocus event which you can subscribe to?

抽个烟儿 2024-12-20 13:30:32

UltraComboEditor 控件具有“Enter”事件,该事件在该控件成为窗体的活动控件时触发,并且该事件在两种情况下都会触发 - 当控件通过使用 Tab 键获得焦点时以及当您使用鼠标时。

我希望这将帮助您实现您的目标。

UltraComboEditor control has "Enter" event which fires when the control becomes the active control of the form, and this event will fire in both situations - when the control got focus by using your Tab key, and when you are using your mouse.

I hope that this will help you to achieve your goal.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文