Brian Lasota
March 7th, 2003, 12:02 PM
I have a user control derived from Panel where we do all of the painting and handling of mouse etc.
What I set the control as a tab stop with a valid tab index, but when I tab with the keyboard through the controls on the form, it never goes to my control.
I know panel is supposed to pass focus to the control it contains, but there are no contain controls, the panel is the control. We used panel bacuase of the boarder styles.
When I put a break point in the initilzation of the conmtrol and call CanFocus the value returned is false. Is there a way to tell the panel, to recieve focus.
Incedently, clicking on the control and calling Focus in the mouse down event works fine.
What I set the control as a tab stop with a valid tab index, but when I tab with the keyboard through the controls on the form, it never goes to my control.
I know panel is supposed to pass focus to the control it contains, but there are no contain controls, the panel is the control. We used panel bacuase of the boarder styles.
When I put a break point in the initilzation of the conmtrol and call CanFocus the value returned is false. Is there a way to tell the panel, to recieve focus.
Incedently, clicking on the control and calling Focus in the mouse down event works fine.