ComponentOne SuperPanel for ASP.NET AJAX: SuperPanel for ASP.NET AJAX Task-Based Help > Setting C1SuperPanel Behaviors > Adding Keyboard Support

Adding Keyboard Support

The C1SuperPanel control lets you easily add keyboard accessibility to the control. You can use AccessKey property to set how the user navigates to the control and through your user interface.

In the following examples you'll set the AccessKey property to s so that pressing the ALT+S key combination at run time brings the C1SuperPanel control into focus.

In Source View

In Source view add AccessKey="s" to the <cc1:C1SuperPanel> tag so it appears similar to the following:

<cc1:C1SuperPanel ID="C1SuperPanel1" runat="server" style="top: 0px; left: 0px; height: 85px" AccessKey="s">

In Design View

In Design view, select the C1SuperPanel control and in the Properties window set the AccessKey property to "s".

In Code

Add the following code to the Page_Load event to set the AccessKey property to "s":

      Visual Basic

Me.C1SuperPanel1.AccessKey = "s"

      C#

this.C1SuperPanel1.AccessKey = "s";


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