下拉按键/KeyDown/KeyUp事件不起作用 [英] Dropdown keypress / KeyDown / KeyUp Event is not working

查看:109
本文介绍了下拉按键/KeyDown/KeyUp事件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在我的窗口应用程序中使用下拉菜单.我想检查不超过255个字符.因此,我想编写代码来检查下拉按键事件.但是在运行时,当我输入下拉文本并调试此代码时,调试不会在那里进行. Keydown和Keyup事件也一样.

是否有任何用于启用此事件的属性.请给我建议,并给我适当的建议.

Thx
ak gupta

i am using dropdown in my window application. i want to check number of character in not more than 255. so i want to write code for checking in dropdown keypress event. but in run time when i am typing in dropdown text and debugging this code, debugging is not going there. same happends for Keydown and Keyup Event.

Is there any property for enabling this event. Please suggest me and give me appropriate suggestion.

Thx
ak gupta

推荐答案

什么是下拉列表?您使用哪个班级?您是否使用WinForms应用程序?
您可以发布10-20行代码来阐明问题范围吗?

-Karel
What is dropdown? Which class do you use? Do you use WinForms application?
Can you post 10-20 lines of code which would clarify scope of your problem?

-Karel


这篇关于下拉按键/KeyDown/KeyUp事件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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