已检查组合框问题. [英] Checked combo box issue..

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

问题描述


我已经选中了组合框.项目是

平方到TO
致敬
平方购买购买到
平方出售给
交货购买至
交货出售至

现在,如果他选择"Squared Off TO",则用户应该能够选择"Delivery TO"或(Delivery TO TO和Delivery Sell TO)".同样,如果他选择"Delivery TO",则他应该能够选择"Squaed Off TO"或"Squad Off TO TO"和"Square Off Sell TO".. hw 我该怎么做...帮助我..

Hi,
i have Checked Combobox.. Items are

Squared Off TO
Delivety TO
Squared Off Buy TO
Squared Off Sell TO
Delivery Buy TO
Delivery Sell TO

Now, if he select "Squared Off TO" user should be able to select either "Delivery TO" Or "(Delivery Buy TO and Delivery Sell TO)".. same way, if he select "Delivery TO", he should be able to select either "Squared Off TO" or (Squared Off Buy TO and Squared Off Sell TO).. hw How can I do this... help me out..

推荐答案

我确实决定回答问题,尽管我不确定您想要实现什么...

可能您想根据顶级复选框的状态启用一些其他功能,例如:

[]平方与TO
| ------ ---------- []交货购买到
| -------- -------- []交货至TO
[x]交货至
| ---------------- [x]平方掉购买TO
| ---------------- [x]平方掉卖至


首先,在codeproject网站上阅读一些文章.也许您会找到答案.
将CheckedListBox作为下拉列表的ComboBox [ ^ ]
具有高级下拉功能的自定义组合框 [ ^ ]
CCheckComboBox II [ [ ^ ]讨论,您将在其中找到可在CheckedListBox的ItemCheck事件中使用以使项目禁用的示例代码.

但我建议您使用 treeview [ ^ ]控件,对您来说更灵活,因为它具有节点和子节点,可以显示为复选框.

我发现了一些额外的东西! [
I did decide to answer question, though i''m not sure what you want to achieve...

Probably you want to enable some extra functionality depend on status of top level checkbox, for example:

[ ] Squared Off TO
|----------------[ ] Delivery Buy TO
|----------------[ ] Delivery Sell TO
[x] Delivery TO
|----------------[x] Squared Off Buy TO
|----------------[x] Squared Off Sell TO


First of all, read some articles on codeproject site. Maybe you''ll find an answer.
A ComboBox with a CheckedListBox as a Dropdown[^]
Custom ComboBoxes with Advanced Drop-down Features[^]
CCheckComboBox II[^]

Similar functionality to CheckedComboBox has a CheckedListBox control. Take a look at this[^] discussion, where you''ll find a sample code that can be used in the ItemCheck event of a CheckedListBox to make items disable.

But i recomend you to use treeview[^] control, which is more flexible to you, becouse it has nodes and childnodes, which can be displayed as checkboxes.

I found something EXTRA! Here[^] you''ll find an article about: How to hide checkbox of the certain TreeNode in TreeView control.

I hope it will be helpful.


这篇关于已检查组合框问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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