ComponentOne NavPanel for ASP.NET AJAX: NavPanel for ASP.NET AJAX Task-Based Help > Adding Keyboard Accessibility Support to C1NavPanel

Adding Keyboard Accessibility Support to C1NavPanel

You can make C1NavPanel and each of its C1NavPanelPanes accessible through the keyboard by setting the AccessKey property.

To set the access key using the Navigation Pane Designer Form:

1.   Click the C1NavPanel smart tag to open the C1NavPanel Tasks menu.

2.   Select Edit Panes and choose C1NavPanel1. Note that you can also add keyboard access to each of the C1NavPanelPanes.

3.   Enter the desired letter next to the AccessKey property.

4.   Click OK to close the Navigation Pane Designer Form. When you run the project and click Alt and the letter entered in the previous step, C1NavPanel1 gets the focus.

To set the access key programmatically:

Add the following code to your form:

      Visual Basic

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        C1NavPanel1.AccessKey = "M"

End Sub

      C#

protected void Page_Load(object sender, EventArgs e)

    {

        C1NavPanel1.AccessKey = "M";

    }


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.