本文介绍了组合框控件 - 哪个事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想设置这样一段代码,当点击一个组合框上的下拉箭头时,会执行一段代码 control 。目前,该部分代码驻留在组合框控件的OnGetFocus 事件中,这似乎有效...我是 猜测因为无法点击在组合框的下拉箭头 框控件上没有首先让组合框控件获得焦点。 但是我注意到代码在点击任何地方时被触发了 组合框控件......不只是在向下箭头上。这不是问题, 但是我想知道代码是否可以驻留在另一个事件中 的组合框控件...这个事件一个人点击就会点火 向下箭头...不仅仅是当一个人点击控件中的某个地方时。 是否有这样的事件,如果有的话,那是什么?活动名称? 谢谢。I want to set things up such that a section of code will have beenexecuted by the time one clicks on the drop down arrow on a combo boxcontrol. Currently, that section of code resides in the OnGetFocusevent of the combo box control, and this appears to work...I''mguessing because one cannot click on the drop down arrow of a combobox control without first having the combo box control receive focus.But I noticed that the code gets fired when one clicks anywhere in thecombo box control...not just on the down arrow. That''s not a problem,but I''m wondering whether the code could reside in a different eventof the combo box control...an event that fires as one is clicking onthe down arrow...not just when one clicks somewhere in the control.Is there such an event, and if so what is the name of the event?Thank you.推荐答案 您正在使用最好的活动。控件'的Enter事件 首先出现,然后是On Focus事件。鼠标悬停事件可以是 用于确定光标是否在向下箭头上方,而不是在文本框区域上方,但这对代码来说是痛苦的,主题 计时错误(如果用户足够快地移动光标,可能会错过 事件),即使向下箭头不是,也会触发 点击需要额外的代码.. 我的好奇心对我有好处,我无法想象一个情况 当用户需要做什么的时候点击下拉 列表当用户实际输入 组合框时不需要做什么,当用户放下列表时你在做什么? - Bob Quintal PA我已经改变了我的电子邮件地址。 - 通过 http://www.teranews.comYou are using the best event available. The control''s Enter eventoccurs first, then the On Focus event. The mouseover event could beused to determine if the cursor was above the down Arrow as opposedto over the textbox area, but that''s painful to code, subject totiming errors (if the user moves the cursor quickly enough, theevent might be missed), and fires even if the down arrow is notclicked requiring additional code..My Curiosity has got the better of me, I cannot imagine a situationwhere something needs doing when the user clicks to dropdown thelist that doesn''t need doing when the user actually enters thecombobox, what are you doing when the user drops the list?--Bob QuintalPA is y I''ve altered my email address.--Posted via a free Usenet account from http://www.teranews.com 已经选择了CDMA的2007年最奇怪的请求 奖品的候选人。我们应该考虑2008年吗?It''s too bad that the candidates for CDMA''s 2007 "Strangest Request"prize have already been selected. Shall we consider this for 2008? 已经选择了CDMA的2007年Strangest Request奖项的候选人,这太糟糕了。我们要在2008年考虑这个吗? It''s too bad that the candidates for CDMA''s 2007 "Strangest Request"prize have already been selected. Shall we consider this for 2008? 但是Lyle,这是最奇怪的要求,你经常提供最有价值的b $ b b。有趣的建议。 :) Wayne Gillespie Gosford NSW AustraliaBut Lyle, it is to the strangest requests that you often supply the mostintriguing suggestions. :)Wayne GillespieGosford NSW Australia 这篇关于组合框控件 - 哪个事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 23:36