我在哪里? [英] Where Am I?

查看:89
本文介绍了我在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在组合框中,是否有办法确定在实际离开组合框之前在组合框外点击了哪个控制元b $ b?

我想要在组合框控件上做出决定

控制

被点击在那个方框外面。


谢谢你

If I am in a combobox, is there are way of determining which control
was clicked outside the combobox, before I actually leave the combobox?
I would like to make a decision at the combobox control about what
control
was clicked outside that box.

ThankYou

推荐答案

2006年4月9日09:18:08 -0700, Ap ****** @ gmail.com 写道:
On 9 Apr 2006 09:18:08 -0700, Ap******@gmail.com wrote:
如果我在组合框中,是否有办法确定哪个控件
在我实际离开组合框之前点击了组合框外面?
我想在组合框控件上做出关于在框外点击什么
控制
的决定。

ThankYou
If I am in a combobox, is there are way of determining which control
was clicked outside the combobox, before I actually leave the combobox?
I would like to make a decision at the combobox control about what
control
was clicked outside that box.

ThankYou




编写一个合适的ComboBox事件:


如果Screen.PreviousControl.Name =" SpecificControlName"然后

等........

-

Fred

请回复此帖新闻组。

我不回复个人电子邮件



Code a suitable ComboBox event:

If Screen.PreviousControl.Name = "SpecificControlName" then
etc........
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail


谢谢你的回复弗雷德。

我'我不确定?但我相信你的建议

意味着我必须把组合框留给

得到我的答案,这就是我不想要的东西

去做。我是否正确?

Thankyou for your response Fred.
I''m not sure? But I believe your suggestion
implies that I have to leave the combobox to
get my answer, and this is what I do not want
to do. Am I correct?


这是你昨晚在帖子标题为要求

Combobox的问题的延续进入"?如果是这样的话,我认为沙拉的代码,只需要一个小修改,就可以实现你的目标,即阻止用户输入其他

控件中的数据,直到值为在组合框控件中输入 - 同时允许用户完全退出表单,而不输入* any *

控件中的值。在组合框的AfterUpdate

事件中尝试以下修改后的代码,因为


Dim ctl As Control


For Each ctl In Me.Controls

如果ctl.ControlType = acTextBox那么

ctl.Locked = IsNull(Me.Combo0)

结束如果

下一页


hth

< Ap ****** @ gmail.com>在消息中写道

news:11 ******************** @ u72g2000cwu.googlegrou ps.com ...
is this a continuation of your question in last night''s post titled "Require
Combobox Entry"? if so, i think salad''s code, with a small revision, will
accomplish your goal of preventing the user from entering data in other
controls until a value is entered in the combo box control - while allowing
the user to exit the form entirely, without entering a value in *any*
control. try the following revised code in the combo box''s AfterUpdate
event, as

Dim ctl As Control

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Locked = IsNull(Me.Combo0)
End If
Next

hth
<Ap******@gmail.com> wrote in message
news:11********************@u72g2000cwu.googlegrou ps.com...
如果我在组合框中,是否有办法确定在实际离开组合框之前在组合框外点击了哪个控件?
我想在组合框控制中做出决定什么
控制
被点击在那个方框外面。

谢谢你
If I am in a combobox, is there are way of determining which control
was clicked outside the combobox, before I actually leave the combobox?
I would like to make a decision at the combobox control about what
control
was clicked outside that box.

ThankYou



这篇关于我在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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