I have a ListBox in my winforms app and I need to handle the ItemChecked becaue each time the users cliks an item i need to some stuff. The problem is that I also need to change the Checked property in some other events of the form. In those cases I need to avoid do that stuff.

Example:

```
private void listBox1_ItemChecked(object sender, ItemCheckedEventArgs e)
{
  if (true) //Should check if item was clicked.
  {
     //Do some stuff
  }
  else //If the event was fired because I changed the Checked property from the code
  {
     //Do some other stuff
  }
}

```

Thanks