如何选择组合框的索引 [英] how to select the index of combobox

查看:97
本文介绍了如何选择组合框的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有两个组合框comb1,comb2
comb1的项目是
"aaa"
"bbb"
"ccc"
"ddd"
.
.
.
.
m

和comb2的项目是
"AAA"
"BBB"
"CCC"
.
.
.
.
n


而且我的总操作数(m x n)

如果我选择
comb1中的"aaa"

comb2中的"AAA"
操作1将显示


comb1中的"aaa"

comb2中的"BBB"
操作2将显示

等等

您能帮我吗?

hi to all!

i have two combo boxes comb1, comb2
the items of comb1 are
"aaa"
"bbb"
"ccc"
"ddd"
.
.
.
.
m

and items of comb2 are
"AAA"
"BBB"
"CCC"
.
.
.
.
n


and i have total operations (m x n)

if i select
"aaa" in comb1
and
"AAA" in comb2
operation 1 will show

and
"aaa" in comb1
and
"BBB" in comb2
operation 2 will show

and so on

can u help me please

推荐答案

在第二个组合框的SelectedIndexChanged事件处理程序中,检查两个组合框的选定值并执行操作.
In the SelectedIndexChanged event handler for second combobox, check the selected value for both the comboboxes and perform the operation.


这篇关于如何选择组合框的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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