Docking Tab for WinForms | ComponentOne
Docking Operations / Enable or Disable Focus Cues
In This Topic
    Enable or Disable Focus Cues
    In This Topic

    DockingTab allows you to set a value indicating whether tabs can display rectangles (or cues) on focusing with the mouse cursor. The focus cues can be easily enabled or disabled for the DockingTab using the TabsShowFocusCues property of C1DockingTab class. By default, this property is set to false.

    Focus cues in Tab page

    In Design Time

    In the Properties window, set the C1DockingTab.TabsShowFocusCues to true.

    In Code

    The code snippet below shows how to set the TabsShowFocusCues property in DockingTab.

    C#
    Copy Code
    c1DockingTab1.TabsShowFocusCues = true;
    

    Prevent Tabs from Receiving Focus

    To prevent the tabs from receiving focus, use the TabsCanFocus property. Setting this property to False will prevent the tabs from receiving focus on Mouse click.