I have created a simple component that inherits directly from System.Windows.Forms.Usercontrol. I have overridden the OnGotFocus and the OnLostFocus methods so that if somebody selects the control a border is drawn around it. If somebody tabs away from the control it looses focus and the border disapears. Nice and Simple.
However, I am having a problem in that the control can only recieve focus by clicking on it. I cannot tab to the usercontrol as it keeps getting skipped? It seems to be acting very much like a label in that you cannot tab to it?
Can anybody help me please? Its driving me barmy!
However, I am having a problem in that the control can only recieve focus by clicking on it. I cannot tab to the usercontrol as it keeps getting skipped? It seems to be acting very much like a label in that you cannot tab to it?
Can anybody help me please? Its driving me barmy!