ComponentOne LightBox for ASP.NET Web Forms
Task-Based Help / Adding Keyboard Navigation to the LightBox
In This Topic
    Adding Keyboard Navigation to the LightBox
    In This Topic

    If you choose you can enable keyboard navigation in the lightbox to increase the accessibility of the application. Keyboard navigation is enabled by setting the KeyNav property to True. The following keys are supported by default:

    In the examples below you'll enable keyboard navigation in C1LightBox.

    In Source View

    In Source view add KeyNav="True" to the <cc1:C1LightBox> tag so it appears similar to the following:

    <cc1:C1LightBox ID="C1LightBox1" runat="server" KeyNav="True">
    

    At Design Time

    In Design view, select the C1LightBox control and in the Properties window set the KeyNav property to True.

    In Code

    Add the following code to the Page_Load event:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1LightBox1.KeyNav = True
    

    To write code in C#

    C#
    Copy Code
    this.C1LightBox1.KeyNav = true;
    
    See Also