I Trying to switch Panel.TabStop
property totrue
but it does not affect anything.
How to enable TabStop
in a Panel
?
I Trying to switch Panel.TabStop
property totrue
but it does not affect anything.
How to enable TabStop
in a Panel
?
The TabStop property has no effect on the Panel control as it is a container object.
Checkout this MSDN Link for details.
As the others have said, the panel control will not accept focus. However, if you set TabStop to true and set its TabOrder, then the next control in the TabOrder should receive focus.
As I understand it, the TabStop property exists at the control level, but it really only affects what I would call interactive controls (there's probably an actual, correct term). Since panels can't directly receive the focus, they won't behave differently based on that flag.
You have to put something that can accept focus onto it, like editbox. There you go :)