Articles in this section
Category / Section

How to navigate the docking windows using the keyboard in WinForms Docking Manager?

1 min read

Navigation with keyboard support

Docking Manager has the BrowsingKey property which can be used for this purpose. To Navigate through other docking windows, assign any key listed in the Properties Grid to this property. The following code snippet illustrates this functionality.

C#

//This will set key F12
this.dockingManager1.BrowsingKey = System.Windows.Forms.Keys.F12 ;
//This will set Ctrl+Shift+F12 as browsing key
dockingManager1.BrowsingKey=((System.Windows.Forms.Keys)(Enum.Parse(typeof(Keys), "F12, Shift, Control")));

 

VB

'This will set key F12
Me.dockingManager1.BrowsingKey = System.Windows.Forms.Keys.F12
'This will set Ctrl+Shift+F12 as browsing key
Me.DockingManager1.BrowsingKey = CType(Enum.Parse(typeof(Keys), "F12, Shift, Control"),System.Windows.Forms.Keys)

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied