How to distinguish user vs programmatic changes in WinForms CheckBox?

Posted by cs31415 on Stack Overflow See other posts from Stack Overflow or by cs31415
Published on 2010-05-10T21:33:06Z Indexed on 2010/05/10 21:44 UTC
Read the original article Hit count: 247

I have logic on a CheckBox's OnCheckedChanged event that fires on form load as well as when user changes check state. I want the logic to only execute upon user action.

Is there a slick way of detecting user vs programmatic change that doesn't rely on setting/checking user variables?

© Stack Overflow or respective owner

Related posts about winforms

Related posts about checkbox