bool preventCheck = true;
private void listView1_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (preventCheck) // for example: !string.IsNullOrEmpty(textBox1.Text)
e.NewValue = e.CurrentValue;
}
bool preventCheck = true;
private void listView1_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (preventCheck) // for example: !string.IsNullOrEmpty(textBox1.Text)
e.NewValue = e.CurrentValue;
}