我在哪里?

编程入门 行业动态 更新时间:2024-10-24 15:25:49
本文介绍了我在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如果我在组合框中,是否有办法确定在实际离开组合框之前在组合框外点击了哪个控制元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 写道: On 9 Apr 2006 09:18:08 -0700, Ap******@gmail 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>在消息中写道 news:11 ******************** @ u72g2000cwu.googlegrou ps ... 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> wrote in message news:11********************@u72g2000cwu.googlegrou ps... 如果我在组合框中,是否有办法确定在实际离开组合框之前在组合框外点击了哪个控件?我想在组合框控制中做出决定什么控制被点击在那个方框外面。 谢谢你 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

更多推荐

我在哪里?

本文发布于:2023-11-08 06:58:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568662.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!