一、Checkedit
1、改变Checkedit 宽度
增加空白控件,并lock size
二、
1、设置或获取CheckedListBox的状态
List<int> SelectList = new List<int>(); /// <summary> /// 获取勾选项 cbl_Signals是控件名称 /// </summary> private void GetChecked() { SelectList.Clear(); for (int i = 0; i < cbl_Signals.Items.Count; i++) { if (cbl_Signals.GetItemChecked(i)) { SelectList.Add(i); } } } /// <summary> /// 将特定项设置为勾选状态 /// </summary> private void SetChecked() { for (int i = 0; i < SelectList.Count; i++) { cbl_Signals.SetItemChecked(SelectList[i], true); } }