我有一个带有十个不同复选框的组合框,其中包含不同的披萨配料。当我选中多个框时,我希望浇头的名称在 groupbox 下方的标签上显示为字符串。
问问题
865 次
1 回答
0
Yes, instead of using simple check boxes, use a CheckedListBox control (otherwise you must handle each check box click event separately)
So when you are done addnig 10 items in a CheckedListBox, then set its property:
CheckonClick
to true
Then double click the control and use the following code:
Label1.Text+=checkedListBox1.SelectedItem.ToString() + " ";
于 2013-03-07T06:01:35.273 回答