如何将组合框的复制值用于另一种形式 [英] how can use copy value of combobox into another form
本文介绍了如何将组合框的复制值用于另一种形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的申请表中有两个表格。我在form1中使用一个组合框,我想在form2中为我的数据库中的组合框使用选择的值,在这个组合框中通过这个组合框分配id我该怎么办?
i have two forms in my application. im using one combobox in form1 and i want to use selected value to that combobox in form2 for my database in which assigning id by this combobox what should i do ?
推荐答案
取决于两个表单之间的关系。
看看这些,其中一个适合:(父表单创建Child实例,这不会' t暗示任何正式的MDI关系)
在两种表格之间传递信息,第1部分:父母对儿童 [ ^ ]
在两种形式之间传递信息,第2部分:儿童到父母 [ ^ ]
在两种形式之间传递信息,第3部分:儿童与儿童 [ ^ ]
Depends on the "relationship" between the two forms.
Have a look at these, one of them will fit: (The Parent form creates the Child instance, this doesn't imply any formal MDI relationship)
Transferring information between two forms, Part 1: Parent to Child[^]
Transferring information between two forms, Part 2: Child to Parent[^]
Transferring information between two forms, Part 3: Child to Child[^]
这篇关于如何将组合框的复制值用于另一种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文