I have a
that is set to
. When a timer expires it will be set to
and turn off an external output signal. So far so good.
With the current code when the user clicks on the
it will become an
. I would like to intercept it and make it a
The effect for the user would be to cancel the timer and leave the output on until the user unchecks the box or the user starts a separate process that takes over and the Indeterminate CheckBox` is set again.
As it is he turns off the output and has to explicitly turn it on again.
I tried the validating event, but that doesn't happen until I leave the box.
To clarify a little bit what the user wants to see.
When the lights are off the box is always unchecked.
When the automated part of the system is running, the light is on. If the user looks at the control it is in the indeterminate state because the user did not activate it it, but it is on.
When the process stops a timer is started leaving the lights on for 2 minutes. The user still sees the indeterminate state during this time.
If the user needs the light to remain on he will check the box removing the indeterminate state. When he is through he will manually uncheck the box turning off the light or restart the automated process which will make it indeterminate again.
I wasn't aware of the AutoCheck