The C1Expander 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 e so that pressing the ALT+E key combination at run time brings the C1Expander control into focus.
In Source View
In Source view add AccessKey="e" to the <cc1:C1Expander> tag so it appears similar to the following:
<cc1:C1Expander ID="C1Expander1" runat="server" AccessKey="e">
In Design View
In Design view, select the C1Expander control and in the Properties window set the AccessKey property to e.
In Code
Add the following code to the Page_Load event to set the AccessKey property to e:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1Expander1.AccessKey = "e" |
To write code in C#
C# |
Copy Code
|
---|---|
this.C1Expander1.AccessKey = "e"; |