Usercontrol Focus Problem

fredriko

Active member
Joined
Jun 3, 2004
Messages
35
Programming Experience
10+
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!:eek:
 
Did you set it's TabStop and TabIndex properties ?
 
Back
Top