We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to provide a keyboard shortcut to programmatically open the primitive tab drop down in TabControlAdv?


In TabControlAdv, to provide a keyboard shortcut to programmatically open the primitive tab drop down, it is not possible with default drop down. As a work around, we can add ContextMenuStrip and show it when we click the drop down or when we press Ctrl+A.


private void tabControlAdv1_KeyDown(object sender, KeyEventArgs e)


if (e.KeyData == (Keys.Control | Keys.A))

this.contextMenuStrip1.Show(this.tabControlAdv1, new Point(this.tabControlAdv1.TabPrimitivesHost.Location.X, this.tabControlAdv1.TabPrimitivesHost.Location.Y+10));


private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)




foreach (TabPageAdv tabpageAdv in this.tabControlAdv1.TabPages)






Private Sub tabControlAdv1_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles tabControlAdv1.KeyDown

If e.KeyData = (Keys.Control Or Keys.A) Then

Me.contextMenuStrip1.Show(Me.tabControlAdv1, New Point(Me.tabControlAdv1.TabPrimitivesHost.Location.X,


End If

End Sub

Private Sub contextMenuStrip1_Opening(ByVal sender As Object, ByVal e As CancelEventArgs) Handles contextMenuStrip1.Opening

If Me.contextMenuStrip1.Items IsNot Nothing Then


End If

For Each tabpageAdv As TabPageAdv In Me.tabControlAdv1.TabPages


Next tabpageAdv

End Sub



Article ID: Published Date: Last Revised Date: Platform: Control:
1783 04/30/2011 07/10/2014 Windows Forms TabControlAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon