Give a panel a focus
-
How can i make a panel that can receive a focus I used the GotFocus and LostFocus events to turn the panel blue when focussed. But how can i set the CanReceiveFocus Property true so that you can use your keyboard (Tab and arrows) to give that control the focus. (That panel also conatains a picturebox and a label). Thanks Jonathan Slenders
-
How can i make a panel that can receive a focus I used the GotFocus and LostFocus events to turn the panel blue when focussed. But how can i set the CanReceiveFocus Property true so that you can use your keyboard (Tab and arrows) to give that control the focus. (That panel also conatains a picturebox and a label). Thanks Jonathan Slenders
Extend the control and in your constructor call
SetStyle(ControlStyles.Selectable, true)
.Microsoft MVP, Visual C# My Articles
-
Extend the control and in your constructor call
SetStyle(ControlStyles.Selectable, true)
.Microsoft MVP, Visual C# My Articles
Thank you very mush