如何重置ComboBox? [英] How to reset a ComboBox?

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

问题描述

大家好

我在表单上有一个组合框,表单上有大约10个文本框,所有值都来自Query,当我选择值时一个组合框,它将根据该值显示,但是当我没有选择任何内容时,
文本框中的值仍然存在,如何在文本框中重置为空值。



此外,如果在具有唯一值的文本框之一中输入值,则应该能够在其他文本框中显示值,是否可以?

谢谢

I have a Combo box on a form and the form has about 10 text boxes and all the values are coming from Query, when I select the value in a combo box, it will display according that value, however when I don't select anything also then also the values in the text boxes still exist, how do I reset to empty values in the text box.

Also if the value is entered in one of the text box which has unique value, it should be able to display values on the other text boxes, is it possible?
Thank You

推荐答案

您好,

您如何显示数据在Combobox的文本框中?你在使用任何代码吗?如果是这样,你能告诉我们一个例子吗?另外,当你说你没有选择任何东西时,你的意思是什么?如果您点击下拉列表但没有做任何事情,则不会触发
事件。

How are you displaying the data in the Textboxes from the Combobox? Are you using any code? If so, can you show us an example? Also, what do you mean when you say you don't select anything? If you click on the dropdown but don't do anything, then no event will fire.


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

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