You would need to use LostFocus to change it back.
An alternative is to make all controls a contrasting color compared to the form
and then set them to transparent. The transparent setting is ignored for the
control with focus so you get automatic highlighting with no code.
You would need to use LostFocus to change it back.
An alternative is to make all controls a contrasting color compared to the
form and then set them to transparent. The transparent setting is ignored
for the control with focus so you get automatic highlighting with no code.