Panel.TabStop = true not valid

I am trying to switch the Panel.TabStop property to true , but this has no effect.

How to enable TabStop in Panel ?

+4
source share
6 answers

The Panel does not accept keyboard focus because the panel is not a control (as such), it is a container for other controls that are likely to accept keyboard focus.

If you are trying to create a custom control, get it out of UserControl or Control.

+1
source

The TabStop property does not affect the Panel control because it is a container object.

More on this MSDN Link .

+1
source

As others have said, the control panel will not accept focus. However, if you set TabStop to true and set it to TabOrder, then the next control in TabOrder should get focus.

+1
source

Try setting Focusable=true for the panel you are using.

+1
source

As I understand it, the TabStop property exists at the control level, but it really only affects what I would call interactive controls (this is probably the right, right term). Since panels cannot directly receive focus, they will not behave differently based on this flag.

0
source

You have to put something that can take focus on it, like editbox. There you go :)

0
source

All Articles