组合框和文本框之间的链接 [英] link between combo box and textbox

查看:61
本文介绍了组合框和文本框之间的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

i这里有问题...

i有一个名为casemaster的主表,我有一个名为courtId的组合框,并且它来自法庭table ..我需要在其前面制作一个文本框,并且它必须从法庭表中填写法院名称...每当用户点击组合框下拉组中的Courtid时,法院名称自动必须出现在文本框...如何在组合框和文本框之间建立链接......两者都必须从我的法庭表中填写...

任何人都可以给我一个代码示例.. 。

PLZ我需要一个帮助,非常紧急

非常感谢

Hi..
i have a problem here...
i have a master table called casemaster and in tht i have one combobox called courtId and its filling from the court table.. i need to make a textbox infront of tht and it has to fill the court name from the court table... whenever the user click on the courtid in tht dropdown of combobox tht name of the court automatically has to appear in tht textbox... how can i make a link between the combobox and the textbox... both of them has to be filled from my court table...
can anyone give me a code sample...
plz i need a help here and very urgent
thank u very much

推荐答案

你需要将court_id从组合传递到数据库查询,并从那里获取法院名称。
you need to pass the court_id from the combo to the db query dunamically and from that fetch the court name.


您应该实现一个处理ComboBox点击事件的方法。

只要用户单击ComboBox,就会发生Click事件。

从那里你可以确定选择了哪个项目,你可以从数据库中检索法庭名称,并将法院名称放在文本框中。
You should implement a method that handles the ComboBox''s Click Event.
The Click event occurs whenever the user clicks ComboBox.
From there you can determine which item has been selected, you can retrieve the court name from the database, and put the court name in the text box.


非常感谢你的帮助..你可以给我任何代码样本PLZ

i wil appricate

提前谢谢你
thank u very much for ur help.. bt can u give me any code sample plz
i wil appricate tht
thank u in advance


这篇关于组合框和文本框之间的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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