SetItemCheckState exception
if (CheckedListBox1.Items[num].ToString()==obj.ToString())
{
if(!CheckedListBox1.CheckedListBox.GetItemChecked(num,CheckState.Checked))
{
CheckedListBox1.CheckedListBox.SetItemCheckState(num,CheckState.Checked);
}
}
what is the problem above when my code change the state? a message will be promp me that there is an unhandled exception...
{
if(!CheckedListBox1.CheckedListBox.GetItemChecked(num,CheckState.Checked))
{
CheckedListBox1.CheckedListBox.SetItemCheckState(num,CheckState.Checked);
}
}
what is the problem above when my code change the state? a message will be promp me that there is an unhandled exception...
Comments
There is no CheckedListBox.GetItemChecked method that takes two arguments.
http://msdn.microsoft.com/en-us/library/sy...=VS.100%29.aspx