チェックボックスがすべてチェックされているときにチェックリストボックスのすべての項目を選択しようとしています」それを取得する方法、これが私のコードです
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (cbAll.Checked)
{
if(clbViruslist.Items.Count > 0)
{
// here clbViruslist is the checked list o
// for(int i=0;i<clbViruslist.Items.Count;i++)
// clbViruslist.SetSelected(i,true);
// clbViruslist.SetSelected(0,true ) ;
}
}
}