작동하지 않습니다 목록 상자의 검사 항목을 검사 : 내가 항목을 검사 할 때내가의 PictureBox에 그림을 그리기 위해이 코드가
private void ChkLiboData_ItemCheck(object sender, ItemCheckEventArgs e)
{
Refresh();
try
{
foreach (DataClass d in ChkLiboData.CheckedItems)
{
if (d.r == null && d.g == null && d.b == null)
{
Random r = new Random();
d.r = r.Next(0, 255);
d.g = r.Next(0, 255);
d.b = r.Next(0, 255);
DrawDiagram(d.DataList, (int)d.r, (int)d.g, (int)d.b);
}
else
{
DrawDiagram(d.DataList, (int)d.r, (int)d.g, (int)d.b);
}
Refresh();
}
}
catch { }
}
을하지만 디버그 모드에서와 내가 볼 수없는 ChkLiboData.CheckedItems
보았다 ChkLiboData.CheckedItems
의 모든 항목. 나는 무엇을해야합니까 ???
[CheckedListBox의 ItemChecked 이벤트 없음] 가능한 복제본 (http://stackoverflow.com/questions/4454058/no-itemchecked-event-in-a-checkedlistbox) –