

Public Class Form1 Private Property selectedControl As New Control That is, only one control should be highlighted at one time. I would like to change the colour of recently clicked textbox or control only.

However, I want the the color of textbox1 should not remain LightCyan, it should clear the highlight of textbox1. Now, when I click on textbox2 and then press F4, the color of textbox2 changes to LightCyan, which is good too. when I click on textbox1 and then press F4, the color of textbox1 changes to LightCyan (Highlight), which is good. Now I am getting problem to change the color of specific control, e.g. I want to make my system to be dynamic so that it works well with all the controls.
