I have a WebCheckBox that I have subclassed to include a property
DisableAction As Boolean. I want to be able to prevent a mouse click from firing the action to change the checkbox value unless the property DisableAction is set to true. I do not want the checkbox itself to be disabled because it will be made transparent and because I am using a contextual menu to select "Edit" to set the DisableAction property to false and change the text color style of the checkbox to indicate the value is now changeable from its original setting.
What is the best way to prevent the value changing so long as DisableAction is True?